]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 340609: ValidateBugId() should throw an error if no bug ID is passed - Patch...
authorlpsolit%gmail.com <>
Mon, 22 Sep 2008 03:03:54 +0000 (03:03 +0000)
committerlpsolit%gmail.com <>
Mon, 22 Sep 2008 03:03:54 +0000 (03:03 +0000)
Bugzilla/Bug.pm [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5dbcb66..a71f239
@@ -2003,6 +2003,8 @@ sub ValidateBugID {
     my $dbh = Bugzilla->dbh;
     my $user = Bugzilla->user;
 
+    ThrowUserError('invalid_bug_id_or_alias', { field => $field }) unless defined $id;
+
     # Get rid of leading '#' (number) mark, if present.
     $id =~ s/^\s*#//;
     # Remove whitespace