summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-28 17:25:36 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-28 17:25:36 +0200
commit22d759964f120395cae67319e3d1e03f7ae4006b (patch)
tree1e18336117dd63a9a75443fa6c4fedd59e9f9cfb /ocs
parent8ca0a957add3b01efa5bed3762823fe9449414cf (diff)
downloadnextcloud-server-22d759964f120395cae67319e3d1e03f7ae4006b.tar.gz
nextcloud-server-22d759964f120395cae67319e3d1e03f7ae4006b.zip
Use raw PathInfo for matching urls
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index af83a56ff14..1c7d1c89768 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -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) {