projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34f938e
)
Fix for {PER} in queries...
author
Roland Häder
<roland@mxchange.org>
Tue, 17 Nov 2009 21:07:42 +0000
(21:07 +0000)
committer
Roland Häder
<roland@mxchange.org>
Tue, 17 Nov 2009 21:07:42 +0000
(21:07 +0000)
inc/db/lib-mysql3.php
patch
|
blob
|
history
diff --git
a/inc/db/lib-mysql3.php
b/inc/db/lib-mysql3.php
index 13d333d1b2e16f99c1cb5206e88ff7a0470ba18b..14a4b6f9cc8cc5078b1a625c018ffa1f84806066 100644
(file)
--- 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);