aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/input/default.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/input/default.php b/views/default/input/default.php
index 050e3b765..0577b34e5 100644
--- a/views/default/input/default.php
+++ b/views/default/input/default.php
@@ -45,7 +45,6 @@ if (isset($vars['js'])) {
// default attributes
$defaults = array(
'type' => 'text',
- 'value' => '',
);
$attributes = array_merge($defaults, $vars);
@@ -58,6 +57,7 @@ foreach ($attributes as $attr => $val) {
if ($val === TRUE) {
$element[] = $attr;
} elseif ($val !== FALSE) {
+ $val = htmlspecialchars($val);
$element[] = "$attr=\"$val\"";
}
}