thomascube
2008-04-14 54d830fa44e3e387b06a19c8fb9daf63d0994941
Fix html quoting in textareas

1 files modified
6 ■■■■ changed files
program/include/html.php 6 ●●●● patch | view | raw | blame | history
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));
    }
}