From 8e4ec6434d407256113674545dc4cbd07dcf2b42 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Wed, 19 Nov 2003 02:07:23 +0000 Subject: [PATCH] Fixed another bug in wfGeneralizeSQL() --- includes/DatabaseFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1