Skip to content
Myr

Fixed for_qs for urlencode. This fixes #515

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent f51862d · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:jinja2/utils.py+1 added-1 removed
293 unmodified lines
294 if not isinstance(obj, string_types):295 obj = text_type(obj)296 if isinstance(obj, text_type):297 obj = obj.encode(charset)298 safe = for_qs and b'' or b'/'298 safe = not for_qs and b'/' or b''299 rv = text_type(url_quote(obj, safe))300 if for_qs:301 rv = rv.replace('%20', '+')302 return rv
229 unmodified lines
modified:CHANGES+2 added
4 unmodified lines
5-------------67(unreleased bugfix release)89- Fixed the `for_qs` flag for `urlencode`.1011Version 2.812-----------13(codename Replacement, released on July 26th 2015)14
361 unmodified lines