]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 406462 รข\80\93 User interface mangled by BiDi characters in Unicode.
authorwurblzap%gmail.com <>
Tue, 4 Dec 2007 22:37:46 +0000 (22:37 +0000)
committerwurblzap%gmail.com <>
Tue, 4 Dec 2007 22:37:46 +0000 (22:37 +0000)
Patch by A.A. Shimono <shimono@mozilla.gr.jp>;
r=Wurblzap; a=mkanat

Bugzilla/Template.pm

index 9be1180bcaba9c2e194571ea87eb907d14fb680d..47520689d7270614d75e949b3cc76508ecac80dd 100644 (file)
@@ -612,11 +612,7 @@ sub create {
                     # |U+200e|Left-To-Right Mark        |0xe2 0x80 0x8e      |
                     # |U+200f|Right-To-Left Mark        |0xe2 0x80 0x8f      |
                     # --------------------------------------------------------
-                    #
-                    # Do the replacing in a loop so that we don't get tricked
-                    # by stuff like 0xe2 0xe2 0x80 0xae 0x80 0xae.
-                    while ($var =~ s/\xe2\x80(\xaa|\xab|\xac|\xad|\xae)//g) {
-                    }
+                    $var =~ s/[\x{202a}-\x{202e}]//g;
                 }
                 return $var;
             },