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

Change askama_escape to require UTF-8 strings #243

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

quadrupleslap
Copy link
Contributor

This should make askama_escape safe, but it changes some parts of the interface, which aren't used by Askama.

Fixes #242.

@djc
Copy link
Owner

djc commented May 30, 2019

Hey, thanks for working on this! In order to make this easier to review, could you please split this in commits where your changes to make the interface safe are not intermixed with unrelated renaming/other refactoring?

@quadrupleslap
Copy link
Contributor Author

Sorry, I don't know what "unrelated renaming" you're referring to — as far as I can tell, all of the renaming is just getting rid of the word bytes because I replaced the &[u8]s with &strs.

@djc
Copy link
Owner

djc commented Jun 14, 2019

Sorry this has taken me so long, it's been super-busy. But this looks basically solid!

@djc djc merged commit f0c80e8 into djc:master Jun 14, 2019
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.

askama_escape is unsafe.
2 participants