X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FRecentChange.php;h=8e3f110744e6d99e4d2384850243dda25c7fece3;hb=19b9a1d48d275d584f31ee8dd44d94d1562d6926;hp=50b949c7cc4b637073b81be6e262ccbc3fa45e3d;hpb=e89a1f8cf3b896b77ca303a0b5767393eef56e35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 50b949c7cc..8e3f110744 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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 ) ); } /**