Commit 5d1b1d3b authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 217627: fix Bugzilla internal error message that appears if bug…

Patch for bug 217627: fix Bugzilla internal error message that appears if bug alias starts with zero; patch by Alexey Gladkov <legion@altlinux.org>; r=justdave; a=justdave.
parent b6c640be
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment