From c3b0f2c0d0539ea53240060e03e1bceb1972e119 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 16 Sep 2014 01:12:05 +0800 Subject: [PATCH] Bugfix. --- Services/Http/HttpRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/Http/HttpRequest.php b/Services/Http/HttpRequest.php index ef68f33..2105cac 100644 --- a/Services/Http/HttpRequest.php +++ b/Services/Http/HttpRequest.php @@ -181,6 +181,7 @@ class HttpRequest implements IHttpRequest $path = substr_replace($requestUri, '', 0, strlen($physicalPath)); // <-- Remove physical path $path = str_replace('?' . $queryString, '', $path); // <-- Remove query string $path = '/' . ltrim($path, '/'); // <-- Ensure leading slash + $path = rtrim($path, '/'); // remove / from the end of string return $path; } -- 2.11.0