From 2a847aab347609fae21ffd1e6a4f7f9aa5a9577d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 19 Oct 2004 05:46:14 +0000 Subject: [PATCH] Don't forget to urlencode the data in wfArrayToCGI() --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1