Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Jan 2009 19:00:11 +0000 (19:00 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Jan 2009 19:00:11 +0000 (19:00 +0000)
includes/RecentChange.php

index 50b949c..8e3f110 100644 (file)
@@ -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 ) );
        }
 
        /**