Commit 331fb669 authored by jcnventura's avatar jcnventura

Issue #1322222 by oadaeh: fix url parameter encode when parameters include arrays.

parent ef7078df
......@@ -726,16 +726,12 @@ function _print_ui_page_match($visibility, $path, $pages) {
function _print_ui_query_string_encode($query, $exclude = array(), $parent = '') {
$params = array();
foreach ($query as $key => $value) {
if ($parent) {
$key = $parent . '[' . $key . ']';
}
if (in_array($key, $exclude)) {
continue;
}
if (is_array($value)) {
$params[] = _print_ui_query_string_encode($value, $exclude, $key);
$params[$key] = _print_ui_query_string_encode($value, $exclude, $key);
}
else {
$params[$key] = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment