summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-25 19:02:56 +0200
committerSimon Rettberg2017-07-25 19:02:56 +0200
commita9fefa7e6b1a33af8448a11520fb6eb9d933377a (patch)
tree0a6cce2193db13b5a42d01ebd449e9fd92d612c2 /inc
parent[locationinfo] Make panel accessible via slxadmin, add URL type panel (diff)
downloadslx-admin-a9fefa7e6b1a33af8448a11520fb6eb9d933377a.tar.gz
slx-admin-a9fefa7e6b1a33af8448a11520fb6eb9d933377a.tar.xz
slx-admin-a9fefa7e6b1a33af8448a11520fb6eb9d933377a.zip
[inc/Download] Delete temp file for response header
Diffstat (limited to 'inc')
-rw-r--r--inc/download.inc.php1
1 files changed, 1 insertions, 0 deletions
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);