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

Properly escape parameters to Dwoo "a" blocks. #8

Merged
merged 6 commits into from
Feb 15, 2013

Conversation

qris
Copy link
Contributor

@qris qris commented Nov 14, 2011

I'd expect to use local variables without HTML escaping, and have the Dwoo {a} block escape them for me. But it doesn't.

This can allow XSS injection in some cases, e.g. where URL parameters are copied back into the output, and breaks XHTML validation as well if {a} blocks are used.

@Seldaek
Copy link
Owner

Seldaek commented Nov 15, 2011

Thanks, that sounds like a sensible patch. Can you just remove those commented out lines? They are not useful anymore, so they shouldn't be in the code.

@qris
Copy link
Contributor Author

qris commented Feb 12, 2013

ok done.

@qris qris closed this Feb 12, 2013
@qris qris reopened this Feb 12, 2013
@Seldaek Seldaek merged commit 72fbdf8 into Seldaek:master Feb 15, 2013
@qris
Copy link
Contributor Author

qris commented Feb 15, 2013

Thanks!

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