Don't create files with * in the name https://github.com/webmin/webmin/issues/935

This commit is contained in:
Jamie Cameron
2018-07-08 14:26:55 -07:00
parent 52203257be
commit 82bd7501d1

View File

@@ -354,6 +354,7 @@ return ($?, $out);
sub get_add_file
{
local ($filename) = @_;
$filename =~ s/\*/ALL/g;
if ($config{'add_file'} && -d $config{'add_file'} && $filename) {
# Adding to a new file in a directory
return "$config{'add_file'}/$filename.conf";