From 5d1b1d3b1ab81ef57eb451ede54b07eeb7ccd90e Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Thu, 20 May 2004 02:48:11 +0000 Subject: Patch for bug 217627: fix Bugzilla internal error message that appears if bug alias starts with zero; patch by Alexey Gladkov ; r=justdave; a=justdave. --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index b1c2ea54d..bef512e0f 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -113,7 +113,7 @@ sub initBug { my $old_bug_id = $bug_id; # If the bug ID isn't numeric, it might be an alias, so try to convert it. - $bug_id = &::BugAliasToID($bug_id) if $bug_id !~ /^[1-9][0-9]*$/; + $bug_id = &::BugAliasToID($bug_id) if $bug_id !~ /^0*[1-9][0-9]*$/; if ((! defined $bug_id) || (!$bug_id) || (!detaint_natural($bug_id))) { # no bug number given or the alias didn't match a bug -- cgit v1.2.3-24-g4f1b