From 9c24822fe8ff67c83e233ecc44f5c843e3c7020d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 4 Nov 2010 18:01:58 +0000 Subject: [PATCH] 2010-11-04 Miguel de Dios * include/functions_config.php: fixed empty spaces the list of ACL IP. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3525 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_config.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3ef6921dfe..e3419eab02 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-11-04 Miguel de Dios + + * include/functions_config.php: fixed empty spaces the list of ACL IP. + 2010-11-04 Ramon Novoa * include/fgraph.php: Do not propagate compressed data to dates in the diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index bfa3cc400a..9bed896ae7 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -66,6 +66,8 @@ function update_config_value ($token, $value) { $count = 0; $lastInsert = false; foreach ($ips as $ip) { + $ip = trim($ip); + $lastInsert = false; if (strlen($valueDB . ';' . $ip) < 100) { //100 is the size of field 'value' in tconfig.