Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 107644
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: query_form also splits on ; without a way to override
There's a way to specify the delimiter when setting the query via query_form, but when you just want to return the parsed query via query_form, it splits on both [&;] without a way of overriding it. I have to manually parse the url myself to avoid splitting on ';'. I have encountered many sites where replacing ';' with '&' will result in an error.
On 2015-10-08 19:57:49, justincase wrote: Show quoted text
> There's a way to specify the delimiter when setting the query via > query_form, but when you just want to return the parsed query via > query_form, it splits on both [&;] without a way of overriding it. I > have to manually parse the url myself to avoid splitting on ';'. I > have encountered many sites where replacing ';' with '&' will result > in an error.
Splitting on ";" is correct; it follows this W3C recommendation: http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2 However, for environments where this recommendation is not followed, it could be useful to specify a custom delimiter character or regexp.