From 3eb9faceb9fedb0fa50a2b2d1fc4952c2652af70 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 17 Jul 2009 20:25:13 +0000 Subject: modification to form_prep() solution. A bandaid really, to return the $str if the field has already been prepped --- system/helpers/form_helper.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 4c229ae9f..c5e977a40 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -613,9 +613,13 @@ if ( ! function_exists('form_prep')) return ''; } + // we've already prepped a field with this name + // @todo need to figure out a way to namespace this so + // that we know the *exact* field and not just one with + // the same name if (isset($prepped_fields[$field_name])) { - return $prepped_fields[$field_name]; + return $str; } $str = htmlspecialchars($str); -- cgit v1.2.3-24-g4f1b