diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-07-17 22:25:13 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-07-17 22:25:13 +0200 |
commit | 3eb9faceb9fedb0fa50a2b2d1fc4952c2652af70 (patch) | |
tree | 275f595354d423714cef8e65ee709a1bb47959d6 /system | |
parent | 01a9b107cab449d1ce24746612e9cf7074e6608d (diff) |
modification to form_prep() solution. A bandaid really, to return the $str if the field has already been prepped
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/form_helper.php | 6 |
1 files changed, 5 insertions, 1 deletions
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); |