-
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: decode percent-encoded path in getPath (#2714)
* feat: decode percent-encoded path in `getPath` * refactor: Stop decoding URIs in the `param()` method, since they are already decoded in `getPath()` * test: add tests for decoding URI in path * chore: denoify * Revert "refactor: Stop decoding URIs in the `param()` method, since they are already decoded in `getPath()`" This reverts commit 7192497. * refactor: Replace "%25" before applying decodeURI() for avoid double decoding Co-authored-by: Szymon Marczak <[email protected]> * chore: denoify * refactor(utils): check existence of "%25" before replacing it with "%2525" Co-authored-by: Szymon Marczak <[email protected]> * feat(utils/url): Changed URL decoding to skip invalid sequences and decode as much as possible * chore: denoify --------- Co-authored-by: Szymon Marczak <[email protected]>
- Loading branch information
Showing
4 changed files
with
213 additions
and
10 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
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