Fix #2123 support nested arrays when getUrl() is used with array syntax

This commit is contained in:
Kijin Sung 2023-06-20 21:12:56 +09:00
parent ac12bac141
commit ff647d6701

View file

@ -1680,11 +1680,18 @@ class Context
$get_vars = array();
foreach ($args_list[0] as $key => $val)
{
$val = trim($val);
if ($val !== '')
if (is_array($val))
{
$get_vars[$key] = $val;
}
else
{
$val = trim(strval($val));
if ($val !== '')
{
$get_vars[$key] = $val;
}
}
}
}
// Otherwise, use alternating members of $args_list as keys and values, respectively.