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
Download (untitled) / with headers
text/plain 349b
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.
Download (untitled) / with headers
text/plain 666b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.