diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-06-28 17:25:36 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-06-28 17:25:36 +0200 |
commit | 22d759964f120395cae67319e3d1e03f7ae4006b (patch) | |
tree | 1e18336117dd63a9a75443fa6c4fedd59e9f9cfb /ocs | |
parent | 8ca0a957add3b01efa5bed3762823fe9449414cf (diff) | |
download | nextcloud-server-22d759964f120395cae67319e3d1e03f7ae4006b.tar.gz nextcloud-server-22d759964f120395cae67319e3d1e03f7ae4006b.zip |
Use raw PathInfo for matching urls
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 2 |
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) { |