From 4e36bf4d55c01c35c1e62fc1e347d49d6c0326c3 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 27 Sep 2010 20:27:16 -0700 Subject: Bug 597772: Make add_see_also check for undef input r=timello, a=mkanat --- Bugzilla/Bug.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ea84fddf5..1e2b78c9a 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="; -- cgit v1.2.3-24-g4f1b