fixed problem pointed out by Necky(T.Okabuchi) <neckyegw(at)wanaya.jp>

This commit is contained in:
Ralf Becker 2009-05-19 15:26:19 +00:00
parent 7b23a006d6
commit f459d35bb8

View File

@ -1153,8 +1153,10 @@ class etemplate extends boetemplate
case 'htmlarea': // Multiline formatted Text Input, size: {simple|extended|advanced},height,width,toolbar-expanded,upload-path
list($mode,$height,$width,$toolbar,$baseref,$convertnl) = explode(',',$cell_options);
if ($convertnl == 1) $value = nl2br($value);
if ($convertnl)
{
$value = nl2br(html::htmlspecialchars($value));
}
if (!$readonly)
{
$mode = $mode ? $mode : 'simple';