From 54d830fa44e3e387b06a19c8fb9daf63d0994941 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 14 Apr 2008 09:06:28 -0400
Subject: [PATCH] Fix html quoting in textareas
---
program/include/html.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/program/include/html.php b/program/include/html.php
index 8af1b1f..e58c2b6 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -432,7 +432,7 @@
}
// take value attribute as content
- if ($value == '') {
+ if (empty($value) && !empty($this->attrib['value'])) {
$value = $this->attrib['value'];
}
@@ -442,9 +442,9 @@
}
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));
}
}
--
Gitblit v1.9.1