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 3682ec0 commit 39cb14aCopy full SHA for 39cb14a
src/MiladRahimi/PHPRouter/Request.php
@@ -129,7 +129,7 @@ private function __construct(Router $router)
129
$this->router = $router;
130
$u = $_SERVER["REQUEST_URI"];
131
$this->uri = $u ? urldecode($u) : null;
132
- $q = $this->query_string = $_SERVER["QUERY_STRING"] ?: null;
+ $q = $this->query_string = empty($_SERVER["QUERY_STRING"]) ? null : $_SERVER["QUERY_STRING"];
133
$this->page = trim(substr($u, 0, strlen($u) - strlen($q)), '?');
134
$this->method = $_SERVER["REQUEST_METHOD"];
135
$this->protocol = $_SERVER["SERVER_PROTOCOL"];
0 commit comments