From 19b9a1d48d275d584f31ee8dd44d94d1562d6926 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 25 Jan 2009 19:00:11 +0000 Subject: [PATCH] Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to remove HTML entities left by some messages (such as colon-separator, etc.) --- includes/RecentChange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ); } /** -- 2.20.1