summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-07-17 22:25:13 +0200
committerDerek Jones <derek.jones@ellislab.com>2009-07-17 22:25:13 +0200
commit3eb9faceb9fedb0fa50a2b2d1fc4952c2652af70 (patch)
tree275f595354d423714cef8e65ee709a1bb47959d6 /system/helpers
parent01a9b107cab449d1ce24746612e9cf7074e6608d (diff)
modification to form_prep() solution. A bandaid really, to return the $str if the field has already been prepped
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php6
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);