From f89e877b8e41a598bd6824838c5f27417992ac84 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 8 Aug 2023 21:00:24 +0200 Subject: [PATCH] [DXAtlas export] Fix for some systems when writing temp file --- application/controllers/Dxatlas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Dxatlas.php b/application/controllers/Dxatlas.php index 6e300d2d..79dbf9db 100644 --- a/application/controllers/Dxatlas.php +++ b/application/controllers/Dxatlas.php @@ -108,7 +108,7 @@ class Dxatlas extends CI_Controller { if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } $zipFileName = 'dxatlas_gridsquares_'. $band . '.zip'; // Prepare File - $file = tempnam("tmp", "zip"); + $file = tempnam(".", "zip"); $zip = new ZipArchive(); $zip->open($file, ZipArchive::OVERWRITE);