PluginTools transfer_xml, Rename filename if it contains symbols (only parsed ones)

This commit is contained in:
fbsanchez 2021-04-20 14:05:15 +02:00
parent d3dc3044aa
commit fc21a1234d
1 changed files with 3 additions and 1 deletions

View File

@ -805,7 +805,9 @@ sub transfer_xml {
if (empty($file_name)){
$file_name = trim(`hostname`);
}
# Tentacle server does not allow files with symbols in theirs name.
$file_name =~ s/[^a-zA-Z0-9_-]//g;
$file_name .= "." . sprintf("%d",time()) . ".data";
}