moving sanitization to file names of output documents only
This commit is contained in:
@@ -1250,9 +1250,9 @@ class G
|
||||
$aAux = explode('/', $filename);
|
||||
$downloadFileName = $aAux[count($aAux) - 1];
|
||||
}
|
||||
header('Content-Disposition: attachment; filename="' . static::inflect($downloadFileName) . '"');
|
||||
header('Content-Disposition: attachment; filename="' . $downloadFileName . '"');
|
||||
} else {
|
||||
header('Content-Disposition: inline; filename="' . static::inflect($downloadFileName) . '"');
|
||||
header('Content-Disposition: inline; filename="' . $downloadFileName . '"');
|
||||
}
|
||||
header('Content-Type: ' . $contentType);
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (!$downloadStatus) {
|
||||
G::streamFile( $realPath, $download, $nameFile); //download
|
||||
G::streamFile( $realPath, $download, G::inflect( $nameFile)); //download
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user