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

turn on autoescape for flask.templating.render_template_string #1515

Closed
wants to merge 2 commits into from
Closed

turn on autoescape for flask.templating.render_template_string #1515

wants to merge 2 commits into from

Conversation

alanhamlett
Copy link
Contributor

Previous pull request was #1176

@ThiefMaster
Copy link
Member

ThiefMaster commented Jun 24, 2015 via email

@alanhamlett alanhamlett changed the title turn on autoescape by default for flask.templating.render_template_string turn on autoescape for flask.templating.render_template_string Jun 24, 2015
@alanhamlett
Copy link
Contributor Author

@ThiefMaster sure, done. What's the eta on this getting merged, I have other pull requests I would like to submit as well.

@@ -1460,7 +1460,7 @@ def handle_http_exception(self, e):
# those unchanged as errors
if e.code is None:
return e

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@untitaker
Copy link
Contributor

I'm not sure how, but I think the current behavior should be better documented.

@untitaker
Copy link
Contributor

In addition to some docs, could you add a changelog and a note in the Upgrading document?

@alanhamlett
Copy link
Contributor Author

I've updated the docstring which will show up in this doc, but I should regenerate docs or add more info somewhere?

For changelog, should I add to version 0.10.2 or 1.0?

@untitaker
Copy link
Contributor

1.0

@alanhamlett
Copy link
Contributor Author

Finished all the changes, everything looks good?

@ThiefMaster
Copy link
Member

I would squash all the commits (besides the whitespace fixes) into a single one

for the message i'd use e.g. this:

Enable autoescape for `render_template_string

that way you stay below 51 chars and it's still clear what it changes

@untitaker
Copy link
Contributor

I've pinged mitsuhiko on IRC if there's a good reason for the current behavior. I assume not and will merge this if he doesn't respond.

@alanhamlett
Copy link
Contributor Author

@ThiefMaster squashed.

@ThiefMaster
Copy link
Member

thanks! (and oops, looks like i forgot the trailing backtick in the commit message suggestion)

@untitaker
Copy link
Contributor

Thanks, rebased and merged!

@untitaker untitaker closed this in db09c67 Jul 4, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants