From 728ac2daaeaa95098aa189c03dd908eaa674a3c7 Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 24 Jan 2010 16:43:29 +0000 Subject: 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 --- views/failsafe/input/form.php | 6 ++++++ views/failsafe/input/securitytoken.php | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 views/failsafe/input/securitytoken.php (limited to 'views/failsafe') 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'); +} ?>
id="" name="" action="" method="" > +
\ No newline at end of file diff --git a/views/failsafe/input/securitytoken.php b/views/failsafe/input/securitytoken.php new file mode 100644 index 000000000..a2a4a0e01 --- /dev/null +++ b/views/failsafe/input/securitytoken.php @@ -0,0 +1,17 @@ + '__elgg_token', 'value' => $token)); +echo elgg_view('input/hidden', array('internalname' => '__elgg_ts', 'value' => $ts)); -- cgit v1.2.3