WIP: minor fix with CSV file names

This commit is contained in:
Jose Gonzalez 2020-04-06 16:49:22 +02:00
parent dacde2d0b2
commit 3537731ee7
1 changed files with 2 additions and 1 deletions

View File

@ -504,9 +504,10 @@ class ModuleTemplates extends HTML
}
}
$fileName = io_safe_output($profile_info['name']);
// Send headers to tell the browser we're sending a file
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename='.preg_replace('/\s/', '_', $profile_info['name']).'.csv');
header('Content-Disposition: attachment; filename='.preg_replace('/\s/', '_', $fileName).'.csv');
header('Pragma: no-cache');
header('Expires: 0');