-
Notifications
You must be signed in to change notification settings - Fork 26
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
Multiline URL Encoded textarea injecting \r\n into strings #136
Comments
Pretty sure issue is arising around cro-http/lib/Cro/HTTP/BodyParsers.pm6 Line 75 in 9fd6382
Golfs down to:
producing: Looks like a Rakudo bug? |
I'm curious, do browsers do this no matter what platform they are running on? I'm also curious if there's precedent for other HTTP libraries doing this normalization. (I can do my own research on both of those, just didn't have time yet.) |
The serialization is being done via the Jquery serialize() method. They refer to W3C Forms recommendations for application/x-www-form-urlencoded and multipart/form-data |
Fwiw, have now fixed the real issue, a new-line handling bug in CSS::Grammar. |
I notice when I type newlines into a text area which is then posted in a form. The line breaks get URL encoded as %0D%0A (carriage-return/line-feed) (both in Chrome and FireFox). These are getting passed all the way through to the query response values.
See screen-shot:
The text was updated successfully, but these errors were encountered: