From 62758960c70efb45fa84d6318be946805ff8eadd Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 1 Nov 2009 19:51:35 +0000 Subject: [PATCH] =?utf8?q?Bug=20525025:=20Custom=20field=20names=20having?= =?utf8?q?=20UTF8-characters=20in=20them=20crash=20Bugzilla=20-=20Patch=20?= =?utf8?q?by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Field.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 1cc89239e6..04e048295e 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -272,7 +272,7 @@ sub _check_name { my $name_regex = qr/^[\w\.]+$/; # Custom fields have more restrictive name requirements than # standard fields. - $name_regex = qr/^\w+$/ if $is_custom; + $name_regex = qr/^[a-zA-Z0-9_]+$/ if $is_custom; # Custom fields can't be named just "cf_", and there is no normal # field named just "cf_". ($name =~ $name_regex && $name ne "cf_") -- 2.47.2