Bug 352702: Warnings in the web server error log when no URL is given on bug creation - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r=mkanat a=myk

This commit is contained in:
lpsolit%gmail.com 2006-09-14 19:38:52 +00:00
parent 801f716709
commit 5d6b323f52

View File

@ -450,7 +450,7 @@ sub _check_assigned_to {
sub _check_bug_file_loc {
my ($invocant, $url) = @_;
# If bug_file_loc is "http://", the default, use an empty value instead.
$url = '' if $url eq 'http://';
$url = '' if (!defined($url) || $url eq 'http://');
return $url;
}