]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 597772: Make add_see_also check for undef input
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Sep 2010 03:27:16 +0000 (20:27 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Sep 2010 03:27:16 +0000 (20:27 -0700)
r=timello, a=mkanat

Bugzilla/Bug.pm

index ea84fddf5eff37f09d437073cefacff7e239afb9..1e2b78c9aaf608e5b6ea50bf8d35186e31a9037f 100644 (file)
@@ -2795,6 +2795,11 @@ sub add_see_also {
     my ($self, $input, $skip_recursion) = @_;
     $input = trim($input);
 
+    if (!$input) {
+        ThrowCodeError('param_required', 
+                       { function => 'add_see_also', param => '$input' });
+    }
+
     # If a bug id/alias has been taken, then treat it
     # as a link to the local Bugzilla.
     my $local_bug_uri = correct_urlbase() . "show_bug.cgi?id=";