From: Aaron Schulz Date: Sun, 4 Oct 2015 09:48:55 +0000 (-0700) Subject: Make generalizeSQL() protected X-Git-Tag: 1.31.0-rc.0~9557^2 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=f169cc63af97d821d5d06e5d77c5ebc907990c8e;p=lhc%2Fweb%2Fwiklou.git Make generalizeSQL() protected Change-Id: Ib1317576b82993adf5ae454f9ecd8bd148a58cc9 --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 4bbb4915a3..ab614084eb 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1756,7 +1756,7 @@ abstract class DatabaseBase implements IDatabase { * * @return string */ - static function generalizeSQL( $sql ) { + protected static function generalizeSQL( $sql ) { # This does the same as the regexp below would do, but in such a way # as to avoid crashing php on some large strings. # $sql = preg_replace( "/'([^\\\\']|\\\\.)*'|\"([^\\\\\"]|\\\\.)*\"/", "'X'", $sql );