projects
/
rock.divinelegy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5f7a7
)
Bugfix.
author
Cameron Ball
<c.ball1729@gmail.com>
Mon, 15 Sep 2014 17:12:05 +0000
(
01:12
+0800)
committer
Cameron Ball
<c.ball1729@gmail.com>
Mon, 15 Sep 2014 17:12:05 +0000
(
01:12
+0800)
Services/Http/HttpRequest.php
patch
|
blob
|
history
diff --git
a/Services/Http/HttpRequest.php
b/Services/Http/HttpRequest.php
index
ef68f33
..
2105cac
100644
(file)
--- 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;
}