summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-04-14 13:06:28 +0000
committerthomascube <thomas@roundcube.net>2008-04-14 13:06:28 +0000
commit54d830fa44e3e387b06a19c8fb9daf63d0994941 (patch)
treefb21ac933763206a6033068bfc9e4da218e5b26a /program
parentf7620880431c287531402d60252b06fb2c38064b (diff)
Fix html quoting in textareas
Diffstat (limited to 'program')
-rw-r--r--program/include/html.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/html.php b/program/include/html.php
index 8af1b1f9d..e58c2b653 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -432,7 +432,7 @@ class html_textarea extends html
}
// take value attribute as content
- if ($value == '') {
+ if (empty($value) && !empty($this->attrib['value'])) {
$value = $this->attrib['value'];
}
@@ -442,9 +442,9 @@ class html_textarea extends html
}
if (!empty($value) && !isset($this->attrib['mce_editable'])) {
- $value = Q($value, 'strict', FALSE);
+ $value = Q($value, 'strict', false);
}
- return self::tag($this->tagname, $this->attrib, Q($value), array_merge(self::$common_attrib, $this->allowed_attrib));
+ return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed_attrib));
}
}