]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use raw PathInfo for matching urls
authorBart Visscher <bartv@thisnet.nl>
Fri, 28 Jun 2013 15:25:36 +0000 (17:25 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 28 Jun 2013 15:25:36 +0000 (17:25 +0200)
ocs/v1.php

index af83a56ff147715f7ebd1378ade420ccee4b60f2..1c7d1c8976824efe44dea0abe24a9f041b7df201 100644 (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) {