From: Bart Visscher Date: Fri, 28 Jun 2013 15:25:36 +0000 (+0200) Subject: Use raw PathInfo for matching urls X-Git-Tag: v6.0.0alpha2~532^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=22d759964f120395cae67319e3d1e03f7ae4006b;p=nextcloud-server.git Use raw PathInfo for matching urls --- 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) {