Commit cdeeace
Fix test router to handle query strings in URL paths
Changed glue.php router to strip query strings from REQUEST_URI before
matching route patterns. This fixes 500 errors when accessing URLs
like /info?user=test because the regex pattern ^/info/?$ didn't
match /info?user=test.
Changed from:
$path = $_SERVER['REQUEST_URI'];
To:
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 06fe960 commit cdeeace
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments