From 991ec2ee51532f845afffe0ec7080d594fe2c7e7 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 6 Jan 2009 12:33:32 +0000 Subject: [PATCH] MDL-17777 fixed request string encoding in ISS --- lib/setuplib.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/setuplib.php b/lib/setuplib.php index 62bb37e585..0fb0348422 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -137,13 +137,7 @@ function initialise_fullme() { // example rule: RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA] if ($_SERVER['QUERY_STRING'] != '') { - // iis is decoding the query string, let's reencode it in order to emulate QUERY_STRING in Apache - // TODO: move this into lib/setup.php - $encoded = urlencode($_SERVER['QUERY_STRING']); - $encoded = str_replace(urlencode('='), '=', $encoded); - $encoded = str_replace(urlencode('%'), '%', $encoded); - $encoded = str_replace(urlencode('&'), '&', $encoded); - $rurl['fullpath'] .= '?'.$encoded; + $rurl['fullpath'] .= '?'.$_SERVER['QUERY_STRING']; } $_SERVER['REQUEST_URI'] = $rurl['fullpath']; // extra IIS compatibility -- 2.39.5