r23834 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23833‎ | r23834 | r23835 >
Date:06:47, 7 July 2007
Author:brion
Status:old
Tags:
Comment:
* (bug 10477) Fix AJAX watch for Farsi on Firefox: JavaScript encoding tweak
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialAllpages.php (modified) (history)
  • /trunk/phase3/includes/Xml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialAllpages.php
@@ -377,4 +377,4 @@
378378 }
379379 }
380380
381 -
 381+?>
Index: trunk/phase3/includes/Xml.php
@@ -346,6 +346,13 @@
347347
348348 # To avoid any complaints about bad entity refs
349349 "&" => "\\x26",
 350+
 351+ # Work around https://bugzilla.mozilla.org/show_bug.cgi?id=274152
 352+ # Encode certain Unicode formatting chars so affected
 353+ # versions of Gecko don't misinterpret our strings;
 354+ # this is a common problem with Farsi text.
 355+ "\xe2\x80\x8c" => "\\u200c", // ZERO WIDTH NON-JOINER
 356+ "\xe2\x80\x8D" => "\\u200D", // ZERO WIDTH JOINER
350357 );
351358 return strtr( $string, $pairs );
352359 }
Index: trunk/phase3/RELEASE-NOTES
@@ -261,6 +261,7 @@
262262 This corrects some odd behavior with sidebar items and custom namespaces
263263 containing ampersands.
264264 * (bug 10375) Change thousands separator character to   for Latin (la)
 265+* (bug 10477) Fix AJAX watch for Farsi on Firefox: JavaScript encoding tweak
265266
266267
267268 == API changes since 1.10 ==

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log