From 56a27dca9aa85d6675de3de8b20d042c56d26ec0 Mon Sep 17 00:00:00 2001 From: Pavel Janda Date: Mon, 24 Oct 2016 16:29:48 +0200 Subject: [PATCH] Removed line related to url script due to BC break of nette/http (https://github.com/nette/http/commit/12ac75cf816d21716cf4e0d58ded693e3dae7c63) --- src/ApiRoute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiRoute.php b/src/ApiRoute.php index 6f91187..a2e0a07 100644 --- a/src/ApiRoute.php +++ b/src/ApiRoute.php @@ -303,7 +303,7 @@ public function match(Nette\Http\IRequest $httpRequest) $url = $httpRequest->getUrl(); - $path = '/' . preg_replace('/^' . str_replace('/', '\/', preg_quote($url->getBasePath())) . '/', '', $url->getPath()); + $path = $url->getPath(); /** * Build path mask