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
The query strings are handled by the Python urllib urlencode(sequence) -> string and parse_qs(string) -> list(tuple). These handle escaping for you.
If you pass a variable to args or kwargs with the intention of them not going into the query, though, they are not escaped.
make_path():
args = tuple(quote_plus(str(a), '') for a in args)
...
url_kwargs = dict(((k, quote_plus(str(v), '')) for k, v in list(kwargs.items()) if k in self._keywords))
will escape in a place that reflects url_for and other important places, and
match():
...
return dict((k, unquote_plus(v)) for k, v in match.groupdict().items()) if match else None
will unescape it.
The important thing to note is that, theoretically, this could be a breaking change for some people, if they are expecting to handle that themselves. In most, if not all, cases, it should be fine, but it's better to bring it up here rather than put it in a PR to never see the light of day.
The text was updated successfully, but these errors were encountered:
The query strings are handled by the Python urllib
urlencode(sequence) -> string
andparse_qs(string) -> list(tuple)
. These handle escaping for you.If you pass a variable to args or kwargs with the intention of them not going into the query, though, they are not escaped.
will escape in a place that reflects url_for and other important places, and
will unescape it.
The important thing to note is that, theoretically, this could be a breaking change for some people, if they are expecting to handle that themselves. In most, if not all, cases, it should be fine, but it's better to bring it up here rather than put it in a PR to never see the light of day.
The text was updated successfully, but these errors were encountered: