This commit is contained in:
Andrea Adamczyk
2019-10-10 10:39:25 -04:00
parent 026ca016cd
commit 28f493156c
2 changed files with 24 additions and 0 deletions

View File

@@ -488,10 +488,12 @@ function changeAbbreviationOfDirectives($size)
function fixContentDispositionFilename($fileName, $replacement = '_')
{
//(double quote) has to be removed
//(question mark) has to be replaced by underscore due to the issue in google chrome
//(forward slash) has to replaced by underscore
//(backslash) has to replaced by underscore
$default = [
'/[\"]/' => '',
'/[\?]/' => $replacement,
'/[\\|\/]/' => $replacement,
'/\\\\/' => $replacement
];