From cf0fb622b5c004694e6b4a46abf9fc49fca1183e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 8 Mar 2008 16:22:05 +0000 Subject: [PATCH] Withespaces fixes. --- includes/ProxyTools.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.20.1