diff --git a/lib/Request.php b/lib/Request.php index c9dd6c0..65549a9 100644 --- a/lib/Request.php +++ b/lib/Request.php @@ -154,7 +154,9 @@ class Request public function getRequestUri() { return array_key_exists('REQUEST_URI', $_SERVER) ? - htmlspecialchars($_SERVER['REQUEST_URI']) : '/'; + htmlspecialchars( + parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) + ) : '/'; } /**