From d223526dae6b1e20ee396b00305d42202a0ccd90 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Tue, 4 Dec 2007 22:37:46 +0000 Subject: [PATCH] =?utf8?q?Bug=20406462=20=C3=A2=C2=80=C2=93=20User=20inter?= =?utf8?q?face=20mangled=20by=20BiDi=20characters=20in=20Unicode.=20Patch?= =?utf8?q?=20by=20A.A.=20Shimono=20;=20r=3DWurblzap?= =?utf8?q?;=20a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Template.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 9be1180bca..47520689d7 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; }, -- 2.47.2