Skip to content

Commit 66ea0dd

Browse files
committed
feat: add fallback for server QUERY_STRING
1 parent e3b0465 commit 66ea0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public static function getPathInfo(): ?string
677677
*/
678678
public static function getQueryString(): ?string
679679
{
680-
return $_SERVER['QUERY_STRING'] ?? null;
680+
return $_SERVER['QUERY_STRING'] ?? parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY) ?? null;
681681
}
682682

683683
/**

0 commit comments

Comments
 (0)