Use formal params

This commit is contained in:
Jamie Cameron
2021-02-21 15:41:21 -08:00
parent 7b6cb56feb
commit c21de1604e

View File

@@ -738,8 +738,11 @@ return $_[0] eq "." ||
# If a path does not start with a /, prepend the base directory
sub absolute_path
{
if ($_[0] =~ /^([a-zA-Z]:)?\//) { return $_[0]; }
return &base_directory()."/".$_[0];
my ($path) = @_;
if ($path =~ /^([a-zA-Z]:)?\//) {
return $path;
}
return &base_directory()."/".$path;
}
# parse_spf(text, ...)