Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specially handle encoded ampersands in query string
If you receive a query string with an encoded ampersand and then follow the decode and re-encode model to remove invalid query string parameters, you end up with a no longer encoded ampersand, breaking the query string. Example: Valid query string: ?keywords="Mine+%26+Yours" When decoded and re-encoded, looks like: ?keywords=%22Mine%20&%20Yours%22 There are now 2 query params instead of 1 because of the ampersand. This change now maintains the ampersand encoding: ?keywords=%22Mine%20%26%20Yours%22
- Loading branch information