From 82fe25a6eb2de5cfb3c1bd8e5f5fd85eb7cbeec4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 10 Aug 2017 14:00:29 +0200 Subject: [PATCH] Clean up temporary sitemap files See #2286 --- .../files/lib/system/worker/SitemapRebuildWorker.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index a5d118b583..ccec277ea4 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -235,6 +235,10 @@ class SitemapRebuildWorker extends AbstractWorker { $file->close(); $this->workerData['finished'] = true; + + if ($this->workerData['tmpFile'] && file_exists($this->workerData['tmpFile'])) { + unlink($this->workerData['tmpFile']); + } } /** -- 2.20.1