summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-25 15:59:17 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-25 15:59:17 +0200
commit60b97145a0cb1c3bba35ec68be7eae911b2b331c (patch)
treed8ac3850f049fbabe07668d1c87f2d971f16c92f /system
parente47425844e84d54c659280c04f450a3526b4e09d (diff)
Form helpers to ignore empty name attributes (fix #1506)
Diffstat (limited to 'system')
-rw-r--r--system/helpers/form_helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 1bccac35c..3cce8688f 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -921,6 +921,10 @@ if ( ! function_exists('_parse_form_attributes'))
{
$val = form_prep($val, $default['name']);
}
+ elseif ($key === 'name' && ! strlen($default['name']))
+ {
+ continue;
+ }
$att .= $key.'="'.$val.'" ';
}