summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-14 13:06:28 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-14 13:06:28 +0000
commit75153a0f772628fd711ef58f704727970a87b912 (patch)
tree74e417e694330ee39c5ec344125c3cc55ba7ded9
parentfcd088166c3453779d9d4fe65132c61951b9b2b2 (diff)
Fix html quoting in textareas
git-svn-id: https://svn.roundcube.net/trunk@1304 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/html.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php
index 8af1b1f9d..e58c2b653 100644
--- a/roundcubemail/program/include/html.php
+++ b/roundcubemail/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));
}
}