Newlines should be converted to spaces for IRC feed
authorAlex Monk <krenair@gmail.com>
Sat, 25 May 2013 15:47:37 +0000 (16:47 +0100)
committerAlex Monk <krenair@gmail.com>
Sat, 25 May 2013 15:47:37 +0000 (16:47 +0100)
Instead of just removing them, which was causing reasons to show up like this:
"Automatically blocked by abuse filter.Description of matched rule: Long-term Chinese spambots"
While showing like this on the web pages:
"Automatically blocked by abuse filter. Description of matched rule: Long-term Chinese spambots"

Change-Id: I058e4b446aaa42b4dfe3369f101191f36b6f6978

includes/RecentChange.php

index b5d4a1c..169b034 100644 (file)
@@ -328,7 +328,7 @@ class RecentChange {
         * @return String
         */
        public static function cleanupForIRC( $text ) {
-               return Sanitizer::decodeCharReferences( str_replace( array( "\n", "\r" ), array( "", "" ), $text ) );
+               return Sanitizer::decodeCharReferences( str_replace( array( "\n", "\r" ), array( " ", "" ), $text ) );
        }
 
        /**