Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-28 19:25:36 +0400
committerBart Visscher <bartv@thisnet.nl>2013-06-28 19:25:36 +0400
commit22d759964f120395cae67319e3d1e03f7ae4006b (patch)
tree1e18336117dd63a9a75443fa6c4fedd59e9f9cfb /ocs/v1.php
parent8ca0a957add3b01efa5bed3762823fe9449414cf (diff)
Use raw PathInfo for matching urls
Diffstat (limited to 'ocs/v1.php')
-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) {