dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff3c17
)
Fixed another bug in wfGeneralizeSQL()
author
Mr. E23
<e23@users.mediawiki.org>
Wed, 19 Nov 2003 02:07:23 +0000
(
02:07
+0000)
committer
Mr. E23
<e23@users.mediawiki.org>
Wed, 19 Nov 2003 02:07:23 +0000
(
02:07
+0000)
includes/DatabaseFunctions.php
patch
|
blob
|
history
diff --git
a/includes/DatabaseFunctions.php
b/includes/DatabaseFunctions.php
index
b566440
..
ebd9b79
100644
(file)
--- a/
includes/DatabaseFunctions.php
+++ b/
includes/DatabaseFunctions.php
@@
-201,7
+201,7
@@
function wfGeneralizeSQL( $sql )
{
# This could be done faster with some arrays and a single preg_replace,
# but this show more clearly what's going on. Which may be a good thing.
- $sql = preg_replace ( "/([\'\"])([^\\\\]|\\\\\\\\)*?\\1/", "\\1X\\1
'
", $sql);
+ $sql = preg_replace ( "/([\'\"])([^\\\\]|\\\\\\\\)*?\\1/", "\\1X\\1", $sql);
$sql = preg_replace ( "/-?\d+/" , "N", $sql);
$sql = preg_replace ( "/\s+/", " ", $sql);
return $sql;