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
If safe is expected and you get "unsafe", to me, that's a bug. And probably, not a hard one to fix. Can't think of evil side-effects. @stewartpark what do you think?
Flask's
url_for
function encodes input to be URL safe. For example,url_for('root', someparam='5 & 6 & more')
gives back/?someparam=5+%26+6+%26+more
.JSGlue doesn't escape the input at all.
Flask.url_for("root", {"someparam": "5 & 6 & more"})
gives back/?someparam=5 & 6 & more
.Here's a fully working demo script:
You'll see the results on the page.
The text was updated successfully, but these errors were encountered: