Commit 4e36bf4d authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 597772: Make add_see_also check for undef input

r=timello, a=mkanat
parent cef0de25
...@@ -2795,6 +2795,11 @@ sub add_see_also { ...@@ -2795,6 +2795,11 @@ sub add_see_also {
my ($self, $input, $skip_recursion) = @_; my ($self, $input, $skip_recursion) = @_;
$input = trim($input); $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 # If a bug id/alias has been taken, then treat it
# as a link to the local Bugzilla. # as a link to the local Bugzilla.
my $local_bug_uri = correct_urlbase() . "show_bug.cgi?id="; my $local_bug_uri = correct_urlbase() . "show_bug.cgi?id=";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment