From 9d60b64fe684b18af5323c2b52cb26c04883db72 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 5 Jan 2023 14:03:38 +0100 Subject: Adjust to new API --- plugins/webbox/webbox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/webbox/webbox.cpp') diff --git a/plugins/webbox/webbox.cpp b/plugins/webbox/webbox.cpp index df7e946..d838d93 100644 --- a/plugins/webbox/webbox.cpp +++ b/plugins/webbox/webbox.cpp @@ -3,7 +3,7 @@ #include "libreichwein/mime.h" #include "libreichwein/tempfile.h" #include "libreichwein/file.h" -#include "libreichwein/stringutil.h" +#include "libreichwein/stringhelper.h" #include "libreichwein/url.h" #include @@ -28,7 +28,7 @@ using namespace std::string_literals; namespace fs = std::filesystem; namespace pt = boost::property_tree; using namespace Reichwein::Mime; -using namespace Reichwein::Stringutil; +using namespace Reichwein::Stringhelper; using namespace Reichwein::URL; using namespace Reichwein; @@ -487,7 +487,7 @@ protected: Tempfile tempfile{".zip"}; // guards this path, removing file afterwards via RAII - arglist = "/usr/bin/zip -r - "s + arglist + " > "s + tempfile.GetPath().string(); + arglist = "/usr/bin/zip -r - "s + arglist + " > "s + tempfile.getPath().string(); int system_result {system(arglist.c_str())}; if (system_result != 0) { @@ -495,7 +495,7 @@ protected: } try { - std::string zipData{File::getFile(tempfile.GetPath())}; + std::string zipData{File::getFile(tempfile.getPath())}; p.m_SetResponseHeader("content_type", "application/octet-stream"); p.m_SetResponseHeader("content_disposition", "attachment; filename=\""s + DOWNLOAD_FILENAME + "\""); return zipData; -- cgit v1.2.3