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

Escapes html entities inside element attributes #384

Merged
merged 2 commits into from
Jun 19, 2018

Conversation

jbalsas
Copy link
Contributor

@jbalsas jbalsas commented Jun 19, 2018

Hey @eduardolundgren, @brunobasto, what do you think about this? We aren't properly unescaping attribute values before passing it down to incremental-dom, which is causing some complex issues.

I think this should be safe since all tests are passing and I added an additional one... 🤔

/cc @topolik

@brunobasto
Copy link

LGTM, I'm curious, what kind of issues did you get before adding this? XSS?

@jbalsas
Copy link
Contributor Author

jbalsas commented Jun 19, 2018

This was actually causing https://issues.liferay.com/browse/LPS-82527, because we render html, into a js string and back to html, and then we were double-escaping the actionURL of the form

@brunobasto
Copy link

Ah. Got it

@jbalsas jbalsas merged commit 5655f7f into develop Jun 19, 2018
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.

2 participants