-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly decode URL parameters when passed as path segments or query …
…params (#114) Fixes #105 `getRequestPath` seems to parse things wrongly with `1+%2B+1+%3D+2` becoming `1+++1+=+2`, losing the distinction between spaces ` ` and plus `+`. Swapped in `getRequestURI` which gives us the raw string and handled the parsing myself to work around that. Updated the `variableRoutes` and `queryParams` unit tests to make sure they properly provide decoded values to the application code
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 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