]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 217627: fix Bugzilla internal error message that appears if bug alias...
authorjocuri%softhome.net <>
Thu, 20 May 2004 02:48:11 +0000 (02:48 +0000)
committerjocuri%softhome.net <>
Thu, 20 May 2004 02:48:11 +0000 (02:48 +0000)
Bugzilla/Bug.pm

index b1c2ea54d3117af468e576027d83e408108442bf..bef512e0f7acdbd1f39c2319bf9867207f131714 100755 (executable)
@@ -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