From: Max Kanat-Alexander Date: Tue, 28 Sep 2010 03:27:16 +0000 (-0700) Subject: Bug 597772: Make add_see_also check for undef input X-Git-Tag: bugzilla-4.1.1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e36bf4d55c01c35c1e62fc1e347d49d6c0326c3;p=thirdparty%2Fbugzilla.git Bug 597772: Make add_see_also check for undef input r=timello, a=mkanat --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ea84fddf5e..1e2b78c9aa 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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=";