From 9a7a193565304c47e99fe9736f85ea892f920b35 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Thu, 31 Mar 2016 14:23:01 +0200 Subject: [PATCH] Corretta funzione per generare i link pdf in xsendfile --- public/getPDF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/getPDF.php b/public/getPDF.php index 5eec27e..b4ed888 100644 --- a/public/getPDF.php +++ b/public/getPDF.php @@ -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.'');