From 22d759964f120395cae67319e3d1e03f7ae4006b Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 28 Jun 2013 17:25:36 +0200 Subject: [PATCH] Use raw PathInfo for matching urls --- ocs/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocs/v1.php b/ocs/v1.php index af83a56ff1..1c7d1c8976 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) {