Commit 007c799
Ibrahim BinAlshikh
fix(routing): preserve query string on redirect and prevent crash on root sub-routes
- Router::redirect() now forwards query string parameters from the
original request to the redirect target. Fixes #303.
- fixUriPath() now checks strlen before accessing $path[0] in the
while loop, preventing 'Uninitialized string offset 0' when
grouping sub-routes under root path '/'. Fixes #302.1 parent 9c5c3b6 commit 007c799
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
610 | 614 | | |
611 | 615 | | |
612 | 616 | | |
| |||
1104 | 1108 | | |
1105 | 1109 | | |
1106 | 1110 | | |
1107 | | - | |
| 1111 | + | |
1108 | 1112 | | |
1109 | 1113 | | |
1110 | 1114 | | |
| |||
0 commit comments