From: Hypolite Petovan Date: Mon, 20 Jun 2022 00:06:12 +0000 (-0400) Subject: Add missing identifier quote in Database->replaceInTableFields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d48e40c1bfa743988b89450d479894440ba6babb;p=friendica.git Add missing identifier quote in Database->replaceInTableFields - This caused hyphenated table names to fail the replace query --- diff --git a/src/Database/Database.php b/src/Database/Database.php index 7edbdf2a2c..d1aff82218 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1820,7 +1820,7 @@ class Database $upds = implode(', ', $upd); - $r = $this->e(sprintf("UPDATE %s SET %s;", $table_name, $upds)); + $r = $this->e(sprintf("UPDATE %s SET %s;", DBA::quoteIdentifier($table_name), $upds)); if (!$this->isResult($r)) { throw new \RuntimeException("Failed updating `$table_name`: " . $this->errorMessage()); }