summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/cvar.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes/cvar.inc.php')
-rw-r--r--frontends/php/include/classes/cvar.inc.php4
1 files changed, 2 insertions, 2 deletions
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);
}
}