Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[WebLink] Escape double quotes in attributes values#40209
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedFeb 16, 2021
shouldn't this be escaped with |
nicolas-grekas commentedFeb 16, 2021
or maybe not if this is for HTTP headers? any link to the relevant part of the spec? |
fancyweb commentedFeb 16, 2021
https://tools.ietf.org/html/rfc5988 says quoted-string:
|
fabpot commentedFeb 16, 2021
Thank you@fancyweb. |
If the attribute value contains a double quote, the serialized value is invalid:
</foo>; rel="alternate"; title="foo " bar". Ideally we would useaddcslashesbut we can't because users that already pass escaped values would then be impacted.