diff --git a/admin/configure.php b/admin/configure.php index 44adfdf3348..3c3ac45f8f7 100644 --- a/admin/configure.php +++ b/admin/configure.php @@ -34,7 +34,7 @@ get_string("adminhelpmanagemodules")); $table->data[] = array("".get_string("manageblocks")."", get_string("adminhelpmanageblocks")); - $table->data[] = array("".get_string("managefilters")."", + $table->data[] = array("sesskey\">".get_string("managefilters")."", get_string("adminhelpmanagefilters")); if (!isset($CFG->disablescheduledbackups)) { $table->data[] = array("sesskey\">".get_string("backup")."", diff --git a/admin/filters.html b/admin/filters.html index 79f0c55f10d..fb84bc93b16 100644 --- a/admin/filters.html +++ b/admin/filters.html @@ -1,6 +1,7 @@ cellheading"); ?>
+
@@ -80,6 +81,7 @@ cellheading"); ?> + diff --git a/admin/filters.php b/admin/filters.php index 7c9da07d772..62a159177ef 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -16,6 +16,10 @@ error("Only administrators can use this page!"); } + if (!confirm_sesskey()) { + error(get_string('confirmsesskeybad', 'error')); + } + if (!$site = get_site()) { error("Site isn't defined!"); } diff --git a/admin/index.php b/admin/index.php index 8577db4da57..6429a9cc452 100644 --- a/admin/index.php +++ b/admin/index.php @@ -297,7 +297,7 @@ get_string("adminhelpmanagemodules")."
"; $configdata .= " ".get_string("manageblocks")." - ". get_string("adminhelpmanageblocks")."
"; - $configdata .= " ".get_string("managefilters")." - ". + $configdata .= " sesskey\">".get_string("managefilters")." - ". get_string("adminhelpmanagefilters")."
"; if (!isset($CFG->disablescheduledbackups)) { $configdata .= " sesskey\">".get_string("backup")." - ".