From: Max Kanat-Alexander Date: Tue, 28 Sep 2010 03:28:27 +0000 (-0700) Subject: Bug 597772: Make add_see_also check for undef input X-Git-Tag: bugzilla-4.0rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e0cf358ceccaf0b92a47fb4104301c3581d750;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 93269d4806..4219664f24 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2780,6 +2780,11 @@ sub add_see_also { my ($self, $input) = @_; $input = trim($input); + if (!$input) { + ThrowCodeError('param_required', + { function => 'add_see_also', param => '$input' }); + } + # We assume that the URL is an HTTP URL if there is no (something):// # in front. my $uri = new URI($input);