From dfbb4a4388893c8c86e2ca78ceb02091ac3ee499 Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 26 Jun 2008 07:59:00 +0000 Subject: - [DEV-137] fixed screen save problem (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5794 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/config.inc.php') diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 219df8cd..44a3ebf7 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -24,8 +24,8 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!! ?> $data) + $value[$id] = zbx_stripslashes($data); + // $value = array_map('zbx_stripslashes',$value); /* don't use 'array_map' it buggy with indexes */ + } elseif (is_string($value)){ + $value = stripslashes($value); + } + return $value; + } + function empty2null($var){ return ($var == "") ? null : $var; } -- cgit