Currently there is no support to handle array in the query parameters.
Example String like 'foo[]=1&foo[]=2&foo[]=3' will just give an
<?php
array('foo'=> 3)
?>
So the attached patch adds support for array in query parameters.
Also refer
#1597784: [Performance]: drupal_get_query_array should be replaced with parse_str : Where there is a discussion of replacing the whole function logic and replacing it with parse_str.
But parse_str() is subject to php max_input_vars limitation and there are sites that use parse_str() to parse things that aren't directly coming from users query args.
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
drupal_get_query_array_support.patch | 849 bytes | Idle | FAILED: [[SimpleTest]]: [MySQL] 57,946 pass(es), 0 fail(s), and 4 exception(s). | View details | Re-test |