From 5755a74aa63fef10a6cf785f34176681e139499f Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Sat, 25 May 2013 16:47:37 +0100 Subject: [PATCH] Newlines should be converted to spaces for IRC feed 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index b5d4a1c531..169b034102 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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 ) ); } /** -- 2.20.1