From d82ea0f2111abaf6da177931f89240feb8cd6efb Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Thu, 15 Aug 2024 11:51:31 +0100 Subject: [PATCH] MDL-82802 tool_xmldb: allow numeric characters in table names. --- .../new_table_from_mysql/new_table_from_mysql.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/tool/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php b/admin/tool/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php index ed85bccbe49..ccba5da8401 100644 --- a/admin/tool/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php +++ b/admin/tool/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php @@ -129,8 +129,8 @@ class new_table_from_mysql extends XMLDBAction { // go to the table edit action } else { // Get some params (table is mandatory here). - $tableparam = required_param('table', PARAM_ALPHAEXT); - $afterparam = required_param('after', PARAM_ALPHAEXT); + $tableparam = required_param('table', PARAM_ALPHANUMEXT); + $afterparam = required_param('after', PARAM_ALPHANUMEXT); if (empty($tableparam) || empty($afterparam)) { throw new moodle_exception('Invalid param value detected.');