-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To properly handle https://example.com/?%611&a2&a3 --trim query=a*, trurl now "normalizes" the query pairs by an extra round of URL decode + encode. If a query pair gets normalized, consider it modified which in turn triggers a URL update. Thus trurl 'https://example.com/?%611&a2&a3' outputs https://example.com/?a1&a2&a3 The query part URL encodes spaces to pluses (and vice versa). Note that %20 in the query in the input URL will be normalized to a +. Updated several tests accordingly. Reported-by: Emanuele Torre Fixes #326 Closes #328
- Loading branch information
Showing
2 changed files
with
116 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters