cleanUp all invalid utf8 in sql for debug toolbar
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 22 Apr 2016 19:50:44 +0000 (21:50 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 22 Apr 2016 19:50:44 +0000 (21:50 +0200)
Some sql still contains utf8 which is not replaced by ■, clean up this
bytes by using UtfNormal.

Change-Id: I548ffd783536c65b023b1598a5c57fb9b86c6db2

includes/debug/MWDebug.php

index 81770d5..13d25a8 100644 (file)
@@ -368,6 +368,9 @@ class MWDebug {
                        $sql
                );
 
+               // last check for invalid utf8
+               $sql = UtfNormal\Validator::cleanUp( $sql );
+
                self::$query[] = [
                        'sql' => $sql,
                        'function' => $function,