From: umherirrender Date: Fri, 22 Apr 2016 19:50:44 +0000 (+0200) Subject: cleanUp all invalid utf8 in sql for debug toolbar X-Git-Tag: 1.31.0-rc.0~7180^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=e1864398d7cba85925c0a4e7d164cc22dbdcfd8d;p=lhc%2Fweb%2Fwiklou.git cleanUp all invalid utf8 in sql for debug toolbar Some sql still contains utf8 which is not replaced by ■, clean up this bytes by using UtfNormal. Change-Id: I548ffd783536c65b023b1598a5c57fb9b86c6db2 --- diff --git a/includes/debug/MWDebug.php b/includes/debug/MWDebug.php index 81770d53cb..13d25a86b4 100644 --- a/includes/debug/MWDebug.php +++ b/includes/debug/MWDebug.php @@ -368,6 +368,9 @@ class MWDebug { $sql ); + // last check for invalid utf8 + $sql = UtfNormal\Validator::cleanUp( $sql ); + self::$query[] = [ 'sql' => $sql, 'function' => $function,