Skip to content

Commit

Permalink
Merge pull request #323 from tomolimo/master
Browse files Browse the repository at this point in the history
Changed \d by [0-9] in regex for mysql, as \d is not POSIX
  • Loading branch information
tomolimo authored Jul 12, 2019
2 parents 1334deb + 17f50df commit 5902ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/toolbox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down

0 comments on commit 5902ce6

Please sign in to comment.