Fixing regression from r35298: wasn't adding enough ampersands.
This commit is contained in:
parent
daf1821d32
commit
7c1e050219
1 changed files with 8 additions and 1 deletions
|
|
@ -1000,9 +1000,16 @@ function wfArrayToCGI( $array1, $array2 = NULL )
|
|||
$cgi .= '&';
|
||||
}
|
||||
if(is_array($value))
|
||||
{
|
||||
$firstTime = true;
|
||||
foreach($value as $v)
|
||||
$cgi .= urlencode( $key . '[]' ) . '=' .
|
||||
{
|
||||
$cgi .= ($firstTime ? '' : '&') .
|
||||
urlencode( $key . '[]' ) . '=' .
|
||||
urlencode( $v );
|
||||
$firstTime = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
$cgi .= urlencode( $key ) . '=' .
|
||||
urlencode( $value );
|
||||
|
|
|
|||
Loading…
Reference in a new issue