http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90723
Revision: 90723
Author: brion
Date: 2011-06-24 18:12:36 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
* (bug 29564) Fix XML export output when LiquidThreads thread data contains
bogus UTF-8
We should still fix the input validation so that signature threads are
truncated cleanly etc, but this will fix the XML export of such bogus data by
running the bits through UtfNormal::cleanUp(). This applies UTF-8 validation,
removes bogus sequences, and also applies NFC transformations, as is already
done on the rest of the XML export output.
Modified Paths:
--------------
trunk/extensions/LiquidThreads/classes/Hooks.php
Modified: trunk/extensions/LiquidThreads/classes/Hooks.php
===================================================================
--- trunk/extensions/LiquidThreads/classes/Hooks.php 2011-06-24 17:32:34 UTC
(rev 90722)
+++ trunk/extensions/LiquidThreads/classes/Hooks.php 2011-06-24 18:12:36 UTC
(rev 90723)
@@ -199,7 +199,7 @@
$threadInfo .= "\t" . Xml::element( $key, null, $value
) . "\n";
}
- $out .= Xml::tags( 'DiscussionThreading', null, $threadInfo ) .
"\n";
+ $out .= UtfNormal::cleanUp( Xml::tags( 'DiscussionThreading',
null, $threadInfo ) . "\n" );
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs