moving sanitization to file names of output documents only
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user