From 938eeba4af4a46126fc4d2fcbe46c15c98d70090 Mon Sep 17 00:00:00 2001 From: osmiy Date: Fri, 19 Jan 2007 15:34:39 +0000 Subject: - developed configuration interface of http monitoring (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3732 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/ctag.inc.php | 2 ++ frontends/php/include/classes/cvar.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/classes') diff --git a/frontends/php/include/classes/ctag.inc.php b/frontends/php/include/classes/ctag.inc.php index 587bd1c9..2b462617 100644 --- a/frontends/php/include/classes/ctag.inc.php +++ b/frontends/php/include/classes/ctag.inc.php @@ -216,6 +216,8 @@ function SetHint($text, $width='', $class='') { + insert_showhint_javascript(); + $text = addslashes(htmlspecialchars($text)); if($width != '' || $class!= '') { diff --git a/frontends/php/include/classes/cvar.inc.php b/frontends/php/include/classes/cvar.inc.php index 7b7c3a11..8703a559 100644 --- a/frontends/php/include/classes/cvar.inc.php +++ b/frontends/php/include/classes/cvar.inc.php @@ -27,11 +27,11 @@ parent::CTag('input','no'); $this->options['type'] = 'hidden'; $this->options['name'] = $name; - $this->options['value'] = $value; + $this->SetValue($value); } function SetValue($value) { - $this->options['value'] = $value; + $this->options['value'] = htmlspecialchars($value); } } -- cgit