From: Alexandre Emsenhuber Date: Sun, 25 Jan 2009 19:00:11 +0000 (+0000) Subject: Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to... X-Git-Tag: 1.31.0-rc.0~43247 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=19b9a1d48d275d584f31ee8dd44d94d1562d6926;p=lhc%2Fweb%2Fwiklou.git Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to remove HTML entities left by some messages (such as colon-separator, etc.) --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 50b949c7cc..8e3f110744 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -235,12 +235,12 @@ class RecentChange } /** - * Remove newlines and carriage returns + * Remove newlines, carriage returns and decode html entites * @param string $line * @return string */ public static function cleanupForIRC( $text ) { - return str_replace(array("\n", "\r"), array("", ""), $text); + return Sanitizer::decodeCharReferences( str_replace( array( "\n", "\r" ), array( "", "" ), $text ) ); } /**