From: Brion Vibber Date: Tue, 19 Oct 2004 05:46:14 +0000 (+0000) Subject: Don't forget to urlencode the data in wfArrayToCGI() X-Git-Tag: 1.5.0alpha1~1515 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2a847aab347609fae21ffd1e6a4f7f9aa5a9577d;p=lhc%2Fweb%2Fwiklou.git Don't forget to urlencode the data in wfArrayToCGI() --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 303f9f01cd..2618325333 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -703,7 +703,7 @@ function wfArrayToCGI( $array1, $array2 = NULL ) if ( '' != $cgi ) { $cgi .= '&'; } - $cgi .= $key.'='.$value; + $cgi .= urlencode( $key ) . '=' . urlencode( $value ); } } return $cgi;