From: Cameron Ball Date: Mon, 15 Sep 2014 17:12:05 +0000 (+0800) Subject: Bugfix. X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=c3b0f2c0d0539ea53240060e03e1bceb1972e119;p=rock.divinelegy.git Bugfix. --- 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; }