From ef19b747ca282316ef186a1316acef02532ad9ed Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 15 Jan 2009 10:26:23 +0000 Subject: [PATCH] Fix regression from r45749: only UTF-8 normalize strings --- includes/normal/UtfNormal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/normal/UtfNormal.php b/includes/normal/UtfNormal.php index 4f8b12935d..3f08cb476a 100644 --- a/includes/normal/UtfNormal.php +++ b/includes/normal/UtfNormal.php @@ -72,6 +72,9 @@ class UtfNormal { * @return string a clean, shiny, normalized UTF-8 string */ static function cleanUp( $string ) { + if( !is_string( $string ) ) { + return $string; + } if( NORMALIZE_ICU ) { # We exclude a few chars that ICU would not. $string = preg_replace( -- 2.20.1