From 7d935da352101e880ee3147d4e4e0769643263ea Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Apr 2012 09:16:27 +0000 Subject: [PATCH] allow text like html markup for htmlarea in mode="ascii", which is effectivly a textarea. Allows html-tag eg. in tracker --- etemplate/inc/class.etemplate_old.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate_old.inc.php b/etemplate/inc/class.etemplate_old.inc.php index eaba35b7b2..85273b20c1 100644 --- a/etemplate/inc/class.etemplate_old.inc.php +++ b/etemplate/inc/class.etemplate_old.inc.php @@ -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':