summaryrefslogtreecommitdiffstats
path: root/inc/download.inc.php
diff options
context:
space:
mode:
authorUdo Walter2017-09-01 15:27:06 +0200
committerUdo Walter2017-09-01 15:27:06 +0200
commit599c259845cd94a0bb64233b9935ea8c38be65b0 (patch)
treef6b2601d774aa5a0ca8785015d997545ef9952f7 /inc/download.inc.php
parent[js_stupidtable] changed one-line code to formatted code; (diff)
parent[locationinfo] Add backend for Microsoft Exchange Server (diff)
downloadslx-admin-599c259845cd94a0bb64233b9935ea8c38be65b0.tar.gz
slx-admin-599c259845cd94a0bb64233b9935ea8c38be65b0.tar.xz
slx-admin-599c259845cd94a0bb64233b9935ea8c38be65b0.zip
Merge remote-tracking branch 'origin/master' into permission-manager
Diffstat (limited to 'inc/download.inc.php')
-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);