Use raw PathInfo for matching urls

This commit is contained in:
Bart Visscher 2013-06-28 17:25:36 +02:00
parent 8ca0a957ad
commit 22d759964f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
try {
OC::getRouter()->match('/ocs'.$_SERVER['PATH_INFO']);
OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) {
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {