From 73f0b597dec0705db01ed4eec7abaebc0295a243 Mon Sep 17 00:00:00 2001
From: Roland Reichwein <mail@reichwein.it>
Date: Sun, 20 Dec 2020 16:52:47 +0100
Subject: webserver 1.12: Added graphical statistics page (gnuplot generated)

---
 plugins/webbox/webbox.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'plugins/webbox')

diff --git a/plugins/webbox/webbox.cpp b/plugins/webbox/webbox.cpp
index d19f428..26d49c8 100644
--- a/plugins/webbox/webbox.cpp
+++ b/plugins/webbox/webbox.cpp
@@ -5,7 +5,6 @@
 #include "libcommon/file.h"
 #include "libcommon/stringutil.h"
 
-
 #include <boost/algorithm/string/predicate.hpp>
 #include <boost/algorithm/string/replace.hpp>
 #include <boost/algorithm/string/split.hpp>
@@ -511,7 +510,7 @@ protected:
    return HttpStatus("500", "Change path error: "s + ex.what(), p);
   }
 
-  Tempfile tempfile; // guards this path, removing file afterwards via RAII
+  Tempfile tempfile{".zip"}; // guards this path, removing file afterwards via RAII
 
   arglist = "/usr/bin/zip -r - "s + arglist + " > "s + tempfile.GetPath().string();
 
-- 
cgit v1.2.3