-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "api_key" possibly getting stripped from inside URLs.
We want to strip the "api_key" query parameter, but our regex wasn't quite correct, so it was possible "api_key" was getting stripped from the URL in unexpected situations, like when the string "api_key" just happened to be somewhere inside the query string (for example, it would end up stripping "?foo=api_key" or ?api_key_foo=bar"). This fixes the issue by fixing the regex for stripping query parameters to more properly detect individual query string boundaries (so only "api_key=foo" should be stripped, but other instances of "api_key" should be left alone).
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
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