From: Mr. E23 Date: Wed, 19 Nov 2003 02:07:23 +0000 (+0000) Subject: Fixed another bug in wfGeneralizeSQL() X-Git-Tag: 1.1.0~135 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=8e4ec6434d407256113674545dc4cbd07dcf2b42;p=lhc%2Fweb%2Fwiklou.git Fixed another bug in wfGeneralizeSQL() --- diff --git a/includes/DatabaseFunctions.php b/includes/DatabaseFunctions.php index b566440dc7..ebd9b798ca 100644 --- 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;