dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d38528
)
* Run UTF-8 validation on old text in Recentchanges RSS diffs
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 5 Mar 2005 14:03:11 +0000
(14:03 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 5 Mar 2005 14:03:11 +0000
(14:03 +0000)
includes/SpecialRecentchanges.php
patch
|
blob
|
history
diff --git
a/includes/SpecialRecentchanges.php
b/includes/SpecialRecentchanges.php
index
0df8788
..
0baca61
100644
(file)
--- a/
includes/SpecialRecentchanges.php
+++ b/
includes/SpecialRecentchanges.php
@@
-371,6
+371,13
@@
function rcFormatDiff( $row ) {
}
$oldtext = $oldrev->getText();
+ global $wgUseLatin1;
+ if( !$wgUseLatin1 ) {
+ # Old entries may contain illegal characters
+ # which will damage output
+ $oldtext = UtfNormal::cleanUp( $oldtext );
+ }
+
global $wgFeedDiffCutoff;
if( strlen( $newtext ) > $wgFeedDiffCutoff ||
strlen( $oldtext ) > $wgFeedDiffCutoff ) {