From 434e5af24106ac36aa312dde69aca3acaabebf57 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 14 Jun 2023 13:37:49 +0100 Subject: [PATCH] MDL-78386 search: specify correct parameter type for search area. --- admin/searchreindex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/searchreindex.php b/admin/searchreindex.php index b149e75f3a0..8525847e56e 100644 --- a/admin/searchreindex.php +++ b/admin/searchreindex.php @@ -32,7 +32,7 @@ require_once($CFG->libdir . '/adminlib.php'); admin_externalpage_setup('searchareas', '', null, (new moodle_url('/admin/searchreindex.php'))->out(false)); // Get area parameter and check it exists. -$areaid = required_param('areaid', PARAM_ALPHAEXT); +$areaid = required_param('areaid', PARAM_ALPHANUMEXT); $area = \core_search\manager::get_search_area($areaid); if ($area === false) { throw new moodle_exception('invalidrequest');