You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# API Umbrella Change Log
2
2
3
+
## Unreleased
4
+
5
+
### Fixed
6
+
7
+
-**Fix URL handling for query strings containing "api\_key":** It was possible that API Umbrella was stripping the string "api\_key" from inside URLs before passing requests to the API backend in some unexpected cases. The `api_key` query parameter should still be stripped, but other instances of "api\_key" elsewhere in the URL (for example as a value, like `?foo=api_key`), are now retained.
8
+
3
9
## 0.14.4 (2017-07-15)
4
10
5
11
This update contains one important fix for v0.14.3. Upgrading is recommended if you are currently running v0.14.3.
0 commit comments