Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test added to check to ensure that quoted values are properly parsed
Using a regular expression to identify quoted string values, could be optimized
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fb4f2b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added, it appears to be a problem for some frameworks, I'm looking for some kind of standards reference, but can't find one.
fb4f2b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RFC2109 refers to the value of a attribute pair being either a token or a quoted string.
http://groups.google.com/group/rack-devel/browse_thread/thread/8cc9d8384e136ac4
fb4f2b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RFC 2109 applies to cookies, but this strips quotes from all query params. In a URI, the query part is (nearly) free-form: http://tools.ietf.org/html/rfc3986#section-3.4
fb4f2b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(btw raggi, it was reverted in dae12e0)
fb4f2b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, and i cherry picked into the 1.1 branch in prep for 1.1.1