Skip to content

Comments

Fix escape twice url with mark_safe#1

Open
theeko74 wants to merge 1 commit intoQuantra:masterfrom
theeko74:fix-escape
Open

Fix escape twice url with mark_safe#1
theeko74 wants to merge 1 commit intoQuantra:masterfrom
theeko74:fix-escape

Conversation

@theeko74
Copy link

Bug with double espace char &

mark_safe on joins to prevent the double escaping signed URLs.
format_html already escaped each individual srcset/size entry above,
so the joined string is safe and must not be escaped again.

Example of the bug
image url: http://static.com/img.jpg?help=true&dim=480
becomes
http://static.com/img.jpg?help=true&dim=480 -> 404 ERROR

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.

1 participant