Skip to content
Snippets Groups Projects
Commit 22d75996 authored by Bart Visscher's avatar Bart Visscher
Browse files

Use raw PathInfo for matching urls

parent 8ca0a957
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException; ...@@ -26,7 +26,7 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\MethodNotAllowedException;
try { try {
OC::getRouter()->match('/ocs'.$_SERVER['PATH_INFO']); OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) { } catch (ResourceNotFoundException $e) {
OC_OCS::notFound(); OC_OCS::notFound();
} catch (MethodNotAllowedException $e) { } catch (MethodNotAllowedException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment