Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292216

Update drupal_get_query_array function to handle array in query parameters

$
0
0

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.

AttachmentSizeStatusTest resultOperations
drupal_get_query_array_support.patch849 bytesIdleFAILED: [[SimpleTest]]: [MySQL] 57,946 pass(es), 0 fail(s), and 4 exception(s).View details | Re-test

Viewing all articles
Browse latest Browse all 292216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>