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

Enable autoescape in jinja templates #195

Merged
merged 1 commit into from Feb 29, 2016
Merged

Conversation

dairiki
Copy link
Contributor

@dairiki dairiki commented Feb 25, 2016

Special HTML characters in album and media metatdata were not being escaped in the generated HTML pages. So if a album title contained a <, for example, there was trouble.

This pull request turns on jinja2’s autoescape feature, which solves the problem.

Prior to this change, special HTML characters in metadata (e.g. titles)
were not being escaped.
saimn added a commit that referenced this pull request Feb 29, 2016
Enable autoescape in jinja templates
@saimn saimn merged commit b19f5ad into saimn:master Feb 29, 2016
@saimn
Copy link
Owner

saimn commented Feb 29, 2016

Thanks !

@saimn saimn added this to the 1.1.0 milestone Apr 16, 2016
@saimn saimn mentioned this pull request Oct 10, 2018
kontza pushed a commit to kontza/sigal that referenced this pull request Aug 28, 2020
Enable autoescape in jinja templates
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.

None yet

2 participants