From 71990b59d6839f45c59b5f12209c3a3001d4a7d0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 11 Nov 2019 14:53:41 +0100 Subject: [PATCH] Fix db_prefix handling in queries with `TRUNCATE TABLE ` and `UNIQUE ` (#7013) --- CHANGELOG | 1 + program/lib/Roundcube/rcube_db.php | 4 ++-- tests/Framework/DB.php | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index abf29add2..7f008feed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ CHANGELOG Roundcube Webmail - Fix bug where cache keys could exceed length limit specified in db schema (#7004) - Fix invalid Signature button state after escaping Mailvelope mode (#7015) - Fix so 401 error is returned only on failed logon requests (#7010) +- Fix db_prefix handling in queries with `TRUNCATE TABLE ` and `UNIQUE ` (#7013) RELEASE 1.4.0 ------------- diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php index 01ead6b67..c1ad7e105 100644 --- a/program/lib/Roundcube/rcube_db.php +++ b/program/lib/Roundcube/rcube_db.php @@ -1369,8 +1369,8 @@ class rcube_db } $sql = preg_replace_callback( - '/((TABLE|TRUNCATE|(?