From aaacfe5dce23c6120f468d68e1ba186a18f652c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 2 Feb 2012 17:36:50 +0100 Subject: [PATCH] Removing explicit call of toString PHP will call it in every string context as of PHP 5.2 --- wcfsetup/install/files/lib/util/StringUtil.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 52bf7d7c42..1887229aa9 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -142,9 +142,6 @@ class StringUtil { * @return string $string */ public static function decodeHTML($string) { - if (is_object($string)) - $string = $string->__toString(); - $string = str_ireplace(' ', ' ', $string); // convert non-breaking spaces to ascii 32; not ascii 160 return @html_entity_decode($string, ENT_COMPAT, 'UTF-8'); } -- 2.20.1