Corretta funzione per generare i link pdf in xsendfile

This commit is contained in:
Riccardo Di Dato
2016-03-31 14:23:01 +02:00
parent 6459055567
commit 9a7a193565
+1 -1
View File
@@ -14,7 +14,7 @@ if (array_key_exists("id",$_GET)) {
if (SFSManager::fileExists($localFilePath)){
$exposedFilePath = GlobalVariables::get("config")->paths->xsendfile."/".$id.".".$pdfModel->extension;
if (!SFSManager::fileExists($exposedFilePath)){
SystemController::shellExec("ln",'-s "'.$localFilePath.'" "'.$exposedFilePath.'"');
SystemController::shellExec("ln",'-nFs "'.$localFilePath.'" "'.$exposedFilePath.'"');
}
header('X-Sendfile: '.$exposedFilePath.'');