diff --git a/admin/auth.php b/admin/auth.php
index 2a1c93dcf52..6a808835c07 100644
--- a/admin/auth.php
+++ b/admin/auth.php
@@ -12,6 +12,9 @@
error("Only the admin can use this page");
}
+ if (!confirm_sesskey()) {
+ error(get_string('confirmsesskeybad', 'error'));
+ }
/// If data submitted, then process and store.
@@ -27,7 +30,7 @@
notify("Problem saving config $name as $value");
}
}
- redirect("auth.php", get_string("changessaved"), 1);
+ redirect("auth.php?sesskey=$USER->sesskey", get_string("changessaved"), 1);
exit;
} else {
@@ -94,9 +97,10 @@
echo "
";
echo "
";
diff --git a/admin/index.php b/admin/index.php
index 1a8d1da947a..1809bdd0849 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -310,7 +310,7 @@
$configdata);
- $userdata = " ".get_string("authentication")." - ".
+ $userdata = " sesskey\">".get_string("authentication")." - ".
get_string("adminhelpauthentication")."
";
$userdata .= " ".get_string("edituser")." - ".
get_string("adminhelpedituser")."
";
diff --git a/admin/users.php b/admin/users.php
index 71bb38d91ba..e9f72fb8a73 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -22,7 +22,7 @@
$table->align = array ("right", "left");
- $table->data[] = array("".get_string("authentication")."",
+ $table->data[] = array("sesskey\">".get_string("authentication")."",
get_string("adminhelpauthentication"));
$table->data[] = array("".get_string("edituser")."",