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.'');