From: Alex Monk Date: Sat, 25 May 2013 15:47:37 +0000 (+0100) Subject: Newlines should be converted to spaces for IRC feed X-Git-Tag: 1.31.0-rc.0~19552^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=5755a74aa63fef10a6cf785f34176681e139499f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) ); } /**