summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-12-04 23:37:46 +0100
committerwurblzap%gmail.com <>2007-12-04 23:37:46 +0100
commitd223526dae6b1e20ee396b00305d42202a0ccd90 (patch)
tree6f78fafa2f00782ab04e28bdc56ed4467869a6ef
parent8f420d0384bb790a7f264450040b581448f1bee8 (diff)
downloadbugzilla-d223526dae6b1e20ee396b00305d42202a0ccd90.tar.gz
bugzilla-d223526dae6b1e20ee396b00305d42202a0ccd90.tar.xz
Bug 406462 – User interface mangled by BiDi characters in Unicode.
Patch by A.A. Shimono <shimono@mozilla.gr.jp>; r=Wurblzap; a=mkanat
-rw-r--r--Bugzilla/Template.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 9be1180bc..47520689d 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -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;
},