moving sanitization to file names of output documents only

This commit is contained in:
dante
2017-10-20 14:38:08 -04:00
parent c3b5fdd578
commit 21e1912fd5
2 changed files with 3 additions and 3 deletions

View File

@@ -1250,9 +1250,9 @@ class G
$aAux = explode('/', $filename); $aAux = explode('/', $filename);
$downloadFileName = $aAux[count($aAux) - 1]; $downloadFileName = $aAux[count($aAux) - 1];
} }
header('Content-Disposition: attachment; filename="' . static::inflect($downloadFileName) . '"'); header('Content-Disposition: attachment; filename="' . $downloadFileName . '"');
} else { } else {
header('Content-Disposition: inline; filename="' . static::inflect($downloadFileName) . '"'); header('Content-Disposition: inline; filename="' . $downloadFileName . '"');
} }
header('Content-Type: ' . $contentType); header('Content-Type: ' . $contentType);

View File

@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (!$downloadStatus) { if (!$downloadStatus) {
G::streamFile( $realPath, $download, $nameFile); //download G::streamFile( $realPath, $download, G::inflect( $nameFile)); //download
} }
} }
} }