From: Roland Häder Date: Tue, 17 Nov 2009 21:07:42 +0000 (+0000) Subject: Fix for {PER} in queries... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b4021b2ca326afc81c36b420ecfd247a00067bd1;p=mailer.git Fix for {PER} in queries... --- diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 13d333d1b2..14a4b6f9cc 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -71,6 +71,9 @@ function SQL_QUERY ($sqlString, $F, $L) { // Remove \t, \n and \r from queries they may confuse some MySQL version I have heard $sqlString = str_replace("\t", ' ', str_replace("\n", ' ', str_replace("\r", ' ', $sqlString))); + // Replace {PER} + $sqlString = str_replace('{PER}', '%', $sqlString); + // Compile config out $sqlString = FILTER_COMPILE_CONFIG($sqlString, true);