From 4811628e529746cd63a0382eb11369d11167453e Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 25 Jan 2021 01:25:44 +0100 Subject: [PATCH] "/tmp/g1billet/".$timestamp.".pdf" --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.php b/index.php index 0518a91..e314c35 100644 --- a/index.php +++ b/index.php @@ -14,12 +14,10 @@ if (file_exists($attachment_location)) { header("Content-Length:".filesize($attachment_location)); header("Content-Disposition: attachment; filename=".$timestamp.".pdf"); readfile($attachment_location); +// unlink("/tmp/g1billet/".$timestamp.".pdf"); die(); } else { die("Error: File not found."); } - -shell_exec(rm -f "/tmp/g1billet/".$timestamp.".pdf"); - ?>