summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 5feb3ce66..632f94505 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -62,6 +62,12 @@ if ( ! function_exists('form_open'))
$form .= form_hidden($hidden);
}
+ // CSRF
+ if ($CI->config->item('csrf_protection') === TRUE)
+ {
+ $form .= form_hidden($CI->security->csrf_token_name, $CI->security->csrf_hash);
+ }
+
return $form;
}
}