Skip to content

Commit

Permalink
Fix query parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 9, 2023
1 parent 8e21c2b commit 900b431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/serverino/interfaces.d
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ struct Request

// Read get params
if (!_rawQueryString.empty)
foreach(m; match(_rawQueryString, ctRegex!("([^=&]+)(?:=([^&]+))?&?", "g")))
foreach(m; match(_rawQueryString, ctRegex!("([^=&]*)(?:=([^&]*))?&?", "g")))
_get[m.captures[1].decodeComponent] = translate(m.captures[2],['+':' ']).decodeComponent;

// Read post params
Expand Down

0 comments on commit 900b431

Please sign in to comment.