aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/input/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/failsafe/input/form.php')
-rw-r--r--views/failsafe/input/form.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/failsafe/input/form.php b/views/failsafe/input/form.php
index 33ddfc3ea..35e718adb 100644
--- a/views/failsafe/input/form.php
+++ b/views/failsafe/input/form.php
@@ -41,7 +41,13 @@ if (isset($vars['method'])) {
$method = strtolower($method);
+// Generate a security header
+$security_header = "";
+if (!isset($vars['disable_security']) || $vars['disable_security'] != true) {
+ $security_header = elgg_view('input/securitytoken');
+}
?>
<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>>
+<?php echo $security_header; ?>
<?php echo $body; ?>
</form> \ No newline at end of file