Skip to content

Commit 5b5f1af

Browse files
markvaneijktaylorotwell
authored andcommitted
Fix for query string in PHP (#259)
When retrieving the query string in your app, it's twice the value it should be. For example I have a request like "/overview?page=1" when I use request()->server('QUERY_STRING') I get "page=1&page=1" instead of "page=1". Removing the ?$querystring for the Nginx config in the rewrite directive fixes this.
1 parent c5c3ca7 commit 5b5f1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/stubs/valet.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ server {
1010
}
1111

1212
location / {
13-
rewrite ^ VALET_SERVER_PATH?$query_string last;
13+
rewrite ^ VALET_SERVER_PATH last;
1414
}
1515

1616
location = /favicon.ico { access_log off; log_not_found off; }

0 commit comments

Comments
 (0)