We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336fd48 commit 6182a7cCopy full SHA for 6182a7c
src/MiladRahimi/PHPRouter/Request.php
@@ -127,7 +127,8 @@ class Request
127
private function __construct(Router $router)
128
{
129
$this->router = $router;
130
- $u = $this->uri = urldecode($_SERVER["REQUEST_URI"]);
+ $u = $_SERVER["REQUEST_URI"];
131
+ $this->uri = urldecode($u);
132
$q = $this->query_string = $_SERVER["QUERY_STRING"];
133
$this->page = trim(substr($u, 0, strlen($u) - strlen($q)), '?');
134
$this->method = $_SERVER["REQUEST_METHOD"];
@@ -319,4 +320,4 @@ public function getReferer()
319
320
return $this->referer;
321
}
322
-}
323
+}
0 commit comments