From caa592dc7d3d53777323707cc5731fb48d3dc1bc Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 28 Jan 2015 04:45:04 +0000 Subject: [PATCH] Fix uninitialized client IP address. Thanks to Wuerr Marcus git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14499 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/configtest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/configtest.php b/src/configtest.php index 3ce65390..8356ebeb 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -120,6 +120,9 @@ if (file_exists(SM_PATH . 'config/config_local.php')) { require(SM_PATH . 'config/config_local.php'); } +sqGetGlobalVar('REMOTE_ADDR',$client_ip,SQ_SERVER); +sqGetGlobalVar('SERVER_ADDR',$server_ip,SQ_SERVER); + /** * Include Compatibility plugin if available. */ @@ -175,8 +178,6 @@ if(!in_array('strings.php', $included)) { /* Block remote use of script */ if (! $allow_remote_configtest) { - sqGetGlobalVar('REMOTE_ADDR',$client_ip,SQ_SERVER); - sqGetGlobalVar('SERVER_ADDR',$server_ip,SQ_SERVER); if ((! isset($client_ip) || $client_ip!='127.0.0.1') && (! isset($client_ip) || ! isset($server_ip) || $client_ip!=$server_ip)) { -- 2.25.1