From 34ff6e12a6d9f51081200dbbd0d4dc66e8641093 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 31 Jan 2021 10:35:35 +0100 Subject: [PATCH] Increase screenshot size limit to 1 MiB. --- src/cgi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgi.cpp b/src/cgi.cpp index b9e178a..3b171ba 100644 --- a/src/cgi.cpp +++ b/src/cgi.cpp @@ -110,7 +110,7 @@ entry_type parse_formdata() std::uint8_t screenshot_counter{1}; for (const auto &screenshot : cgi.getFiles()) { - constexpr size_t size_limit{1024 * 512}; + constexpr size_t size_limit{1024 * 1024}; if (screenshot.getDataLength() > size_limit) { throw runtime_error{format("The screenshot “{0:s}” is too big. "