forked from Wavyzz/dolibarr
Fix: Sanitize filename
This commit is contained in:
@@ -1916,7 +1916,7 @@ else
|
||||
if (! empty($_REQUEST["mode"]) && $_REQUEST["mode"]=='init')
|
||||
{
|
||||
$formmail->clear_attached_files();
|
||||
$formmail->add_attached_files($file,$ref.'.pdf','application/pdf');
|
||||
$formmail->add_attached_files($file,dol_sanitizeFilename($ref.'.pdf'),'application/pdf');
|
||||
}
|
||||
|
||||
// Show form
|
||||
|
||||
Reference in New Issue
Block a user