From 4bd32207dbeeb598e01f0254152ca858052b75e5 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Mon, 20 Jul 2020 21:14:06 +0200 Subject: [PATCH] Setup/Updates * skip unexpected characters in update fields of aowow_dbversion --- setup/tools/clisetup/update.func.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/tools/clisetup/update.func.php b/setup/tools/clisetup/update.func.php index 4d6a4c1e..5958e088 100644 --- a/setup/tools/clisetup/update.func.php +++ b/setup/tools/clisetup/update.func.php @@ -63,8 +63,8 @@ function update() sleep(1); - $sql = trim($sql) ? array_unique(explode(' ', trim($sql))) : []; - $build = trim($build) ? array_unique(explode(' ', trim($build))) : []; + $sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $sql)))) : []; + $build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $build)))) : []; if ($sql) CLI::write('The following table(s) require syncing: '.implode(', ', $sql));