From a9fefa7e6b1a33af8448a11520fb6eb9d933377a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 25 Jul 2017 19:02:56 +0200 Subject: [inc/Download] Delete temp file for response header --- inc/download.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc') diff --git a/inc/download.inc.php b/inc/download.inc.php index a2054f78..b3496e85 100644 --- a/inc/download.inc.php +++ b/inc/download.inc.php @@ -21,6 +21,7 @@ class Download curl_setopt($ch, CURLOPT_MAXREDIRS, 6); $tmpfile = tempnam('/tmp/', 'bwlp-'); $head = fopen($tmpfile, 'w+b'); + unlink($tmpfile); if ($head === false) Util::traceError("Could not open temporary head file $tmpfile for writing."); curl_setopt($ch, CURLOPT_WRITEHEADER, $head); -- cgit v1.2.3-55-g7522