-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tools.uri) normalization decodes as much as possible (#8140)
We decide to let `normalize` function to decode URL-encoded string as much as possible. **PLEASE REFERER TO**: #8140 (comment) ### Issues resolved Fix #7913, FTI-2904 Outdated discussion: ---------------------- This is alternative to PR #8139 where we actually fix the normalization function to not do excessive percent-decoding on normalization. When we added normalization kong.tools.uri.normalize, that function does percent-decoding on everything, except for the reserved characters. That means that we basically percent-decode more than just the ranges of ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E). (so called Unreserved Characters) Alternative Implementation: See #8139
- Loading branch information
Showing
3 changed files
with
100 additions
and
43 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
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