From c5b32bfae9b60b59e81276abd8af2b451b92080a Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Wed, 29 Apr 2009 06:53:37 +0000 Subject: THtmlArea boolean options were not properly encoded in change r2619 --- framework/Web/UI/WebControls/THtmlArea.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index ce789f38..8d55c074 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -438,7 +438,10 @@ class THtmlArea extends TTextBox if(count($option) == 2) { $value=trim(preg_replace('/\'|"/','', $option[1])); - if (($s=strtolower($value))==='false' || $s==='true') $value=(boolean)$s; + if (($s=strtolower($value))==='false') + $value=false; + elseif ($s==='true') + $value=true; $options[trim($option[0])] = $value; } } -- cgit v1.2.3