From 17f50df97c6e5ce056458254f1365a5bfe444735 Mon Sep 17 00:00:00 2001 From: tomolimo Date: Fri, 12 Jul 2019 13:27:36 +0200 Subject: [PATCH] Changed \d by [0-9] in regex for mysql, as \d is not POSIX fixes #322 --- inc/toolbox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/toolbox.class.php b/inc/toolbox.class.php index 7b4abc47..d5d96ce0 100644 --- a/inc/toolbox.class.php +++ b/inc/toolbox.class.php @@ -76,7 +76,7 @@ public function fixFieldsNames(Migration $migration, $condition) { 'name' => [ 'REGEXP', // Regex will be escaped by PDO in GLPI 10+, but has to be escaped for GLPI < 10 - version_compare($glpi_version, '10.0', '>=') ? '\d+' : $DB->escape('\d+') + version_compare($glpi_version, '10.0', '>=') ? '[0-9]+' : $DB->escape('[0-9]+') ], $condition, ],