diff options
author | Greg Aker <greg.aker@ellislab.com> | 2010-09-15 01:45:42 +0200 |
---|---|---|
committer | Greg Aker <greg.aker@ellislab.com> | 2010-09-15 01:45:42 +0200 |
commit | fd2ba8836d74ded06cfe14f728387698c0532148 (patch) | |
tree | 1d8487f67d3862dd4ef5bfb77d07ae7de8574c0f /system | |
parent | 3424bf77ce638a2fd8e64ea76e874d3b9ead7414 (diff) |
Fix #96 html validation failure on csrf hidden input on form_open() in the form helper. Added <div class="hidden"> around the hidden form input.
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/form_helper.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 632f94505..fae5bde27 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -65,7 +65,10 @@ if ( ! function_exists('form_open')) // CSRF if ($CI->config->item('csrf_protection') === TRUE) { - $form .= form_hidden($CI->security->csrf_token_name, $CI->security->csrf_hash); + $form .= sprintf('<div class="hidden">%s</div>', + form_hidden($CI->security->csrf_token_name, + $CI->security->csrf_hash) + ); } return $form; |