summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-05-20 04:48:11 +0200
committerjocuri%softhome.net <>2004-05-20 04:48:11 +0200
commit5d1b1d3b1ab81ef57eb451ede54b07eeb7ccd90e (patch)
tree4ffc35ff31e9b339d5a5e0781a3d6e9455dbeb3b /Bugzilla/Bug.pm
parentb6c640be65192978350365f086d97bf14ae8cd87 (diff)
downloadbugzilla-5d1b1d3b1ab81ef57eb451ede54b07eeb7ccd90e.tar.gz
bugzilla-5d1b1d3b1ab81ef57eb451ede54b07eeb7ccd90e.tar.xz
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.
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
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