On Thu, Aug 9, 2012 at 2:31 PM, woomla <[email protected]> wrote:
> When i parseQueryString this string: view=a;b;c I get an array ['view=a',
> 'b', 'c'] because the string is split on & AND ;.
>
> Is this normal behaviour? Shouldn't it only split on '&'?
>
> W

The ideal behaviour, I guess, would be to use either '&' or ';', not
both (currently it splits on both), and have a setting for it (an
argument to the function perhaps, though the function already gets two
arguments).

Using ';' is not incorrect at all though:
"We recommend that HTTP server implementors, and in particular, CGI
implementors support the use of ';' in place of '&' to save authors
the trouble of escaping '&' characters"
http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2

Tim.

-- 
Tim Wienk, Software Developer, MooTools Developer
E. [email protected] | W. http://tim.wienk.name

Reply via email to