Merge "Properly escape \n and \r in IRCColourfulRCFeedFormatter"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 21 Jan 2016 19:08:52 +0000 (19:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 21 Jan 2016 19:08:52 +0000 (19:08 +0000)
includes/rcfeed/IRCColourfulRCFeedFormatter.php

index 30be343..0efcebf 100644 (file)
@@ -123,10 +123,10 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter {
         * @return string
         */
        public static function cleanupForIRC( $text ) {
-               return Sanitizer::decodeCharReferences( str_replace(
+               return str_replace(
                        array( "\n", "\r" ),
                        array( " ", "" ),
-                       $text
-               ) );
+                       Sanitizer::decodeCharReferences( $text )
+               );
        }
 }