aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/input/form.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-24 16:43:29 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-24 16:43:29 +0000
commit728ac2daaeaa95098aa189c03dd908eaa674a3c7 (patch)
tree6b34b9618a54e017862cd80e6723d906366c2e01 /views/failsafe/input/form.php
parent6526a83f52eac96a4c522c041ae5c0bfb24795d8 (diff)
downloadelgg-728ac2daaeaa95098aa189c03dd908eaa674a3c7.tar.gz
elgg-728ac2daaeaa95098aa189c03dd908eaa674a3c7.tar.bz2
Refs #1459: Added missing security tokens for failsafe (installation) view.
git-svn-id: http://code.elgg.org/elgg/trunk@3835 36083f99-b078-4883-b0ff-0f9b5a30f544
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