Revision: 46215
Author:   ialex
Date:     2009-01-25 19:00:11 +0000 (Sun, 25 Jan 2009)

Log Message:
-----------
Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() 
to remove HTML entities left by some messages (such as colon-separator, etc.)

Modified Paths:
--------------
    trunk/phase3/includes/RecentChange.php

Modified: trunk/phase3/includes/RecentChange.php
===================================================================
--- trunk/phase3/includes/RecentChange.php      2009-01-25 19:00:02 UTC (rev 
46214)
+++ trunk/phase3/includes/RecentChange.php      2009-01-25 19:00:11 UTC (rev 
46215)
@@ -235,12 +235,12 @@
        }
        
        /**
-        * 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 ) );
        }
 
        /**



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to