diff options
Diffstat (limited to 'system/helpers/form_helper.php')
-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; |