allow text like html markup for htmlarea in mode="ascii", which is effectivly a textarea. Allows html-tag eg. in tracker

This commit is contained in:
Ralf Becker 2012-04-11 09:16:27 +00:00
parent ed2faae25b
commit 7d935da352

View File

@ -1348,6 +1348,7 @@ class etemplate_old extends boetemplate
self::$request->set_to_process($form_name,$cell['type'],array(
'needed' => $cell['needed'],
'mode' => $mode, // need mode to not run purify for $mode=='ascii'
));
}
else
@ -2228,8 +2229,12 @@ class etemplate_old extends boetemplate
}
break;
case 'htmlarea':
self::set_array($content,$form_name,html::purify($value));
break;
if ($attr['mode'] !== 'ascii')
{
self::set_array($content,$form_name,html::purify($value));
break;
}
// fall-throught for mode 'ascii', which is identical to textarea
case 'int':
case 'float':
case 'passwd':