Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(proxy) prevent misinterpretation of '%' character in proxied URL encoding #2040

Merged
merged 2 commits into from
Feb 3, 2017

Conversation

thibaultcha
Copy link
Member

Summary

This is a patch that includes #1998 as well as a new integration test suite to ensure percent-encoding behavior of proxied URLs. The expected behavior is asserted in there as a source of truth.

Full changelog

  • fix(utils) remove unescape from encode_args_value
  • tests(proxy) assert URI encoding behavior in tests

Issues resolved

Fix #1975
Ensure #749 behavior
Ensure #688 behavior
Ensure #1480 behavior

Replaces #1998

Since we cannot at the same time encode correctly query parameters
that were properly unescaped before and those which aren't because
in this case we cannot predict if the `%` character was part of
the percent-encoding or just a character (e.g. "foo=%bar%")

Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
@thibaultcha thibaultcha force-pushed the fix/url-double-percent-encoding branch from ed6f7ea to b4f81fb Compare February 2, 2017 23:37
@thibaultcha thibaultcha merged commit 18a0a51 into master Feb 3, 2017
@thibaultcha thibaultcha deleted the fix/url-double-percent-encoding branch February 3, 2017 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong decoding for some query strings
1 participant