From 66e1df753e001f62974ecc61fae7cc4bfeec4d3f Mon Sep 17 00:00:00 2001 From: AXeL-dev Date: Mon, 7 Jan 2019 09:33:24 +0100 Subject: [PATCH] run_sql function: support for numbers in database prefix --- htdocs/core/lib/admin.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php index c67539a8b7c..10ec3b2b85a 100644 --- a/htdocs/core/lib/admin.lib.php +++ b/htdocs/core/lib/admin.lib.php @@ -235,7 +235,7 @@ function run_sql($sqlfile, $silent=1, $entity='', $usesavepoint=1, $handler='', $newsql=$sql; // Replace __+MAX_table__ with max of table - while (preg_match('/__\+MAX_([A-Za-z_]+)__/i',$newsql,$reg)) + while (preg_match('/__\+MAX_([A-Za-z0-9_]+)__/i',$newsql,$reg)) { $table=$reg[1]; if (! isset($listofmaxrowid[$table]))