From e1864398d7cba85925c0a4e7d164cc22dbdcfd8d Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 22 Apr 2016 21:50:44 +0200 Subject: [PATCH] cleanUp all invalid utf8 in sql for debug toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some sql still contains utf8 which is not replaced by ■, clean up this bytes by using UtfNormal. Change-Id: I548ffd783536c65b023b1598a5c57fb9b86c6db2 --- includes/debug/MWDebug.php | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.20.1