-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
html entities in href are decoded and cut #32
Comments
Actually it seems to go deeper than that, it also decodes other entities that might need to stay encoded: Before
After
|
Thanks for the report. Fixed in v2.3 (< php7) and in v4.1 (> php7) ... ... we will keep the input value (+encoding) if no xss was found. I added your examples in the tests, so it will not break again. 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 2.2.2
Thanks for the previous fix, it works like a charm.
We found another issue, because it seems that when a
<a>
href contains a html entity like &, the href is being wrongfully decoded and replacedWithout htmlentity in href
Before:
after:
With htmlentity in href
Before:
after:
The text was updated successfully, but these errors were encountered: