mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Use formal params
This commit is contained in:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user