From: Alexandre Emsenhuber Date: Sat, 8 Mar 2008 16:22:05 +0000 (+0000) Subject: Withespaces fixes. X-Git-Tag: 1.31.0-rc.0~49202 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=cf0fb622b5c004694e6b4a46abf9fc49fca1183e;p=lhc%2Fweb%2Fwiklou.git Withespaces fixes. --- diff --git a/includes/ProxyTools.php b/includes/ProxyTools.php index 270edb1d28..3a4d1d58e2 100644 --- a/includes/ProxyTools.php +++ b/includes/ProxyTools.php @@ -12,9 +12,9 @@ function wfGetForwardedFor() { if( function_exists( 'apache_request_headers' ) ) { // More reliable than $_SERVER due to case and -/_ folding - $set = array (); + $set = array (); foreach ( apache_request_headers() as $tempName => $tempValue ) { - $set[ strtoupper( $tempName ) ] = $tempValue; + $set[ strtoupper( $tempName ) ] = $tempValue; } $index = strtoupper ( 'X-Forwarded-For' ); $index2 = strtoupper ( 'Client-ip' ); @@ -43,9 +43,9 @@ function wfGetForwardedFor() { function wfGetAgent() { if( function_exists( 'apache_request_headers' ) ) { // More reliable than $_SERVER due to case and -/_ folding - $set = array (); + $set = array (); foreach ( apache_request_headers() as $tempName => $tempValue ) { - $set[ strtoupper( $tempName ) ] = $tempValue; + $set[ strtoupper( $tempName ) ] = $tempValue; } $index = strtoupper ( 'User-Agent' ); } else {