From 3851e7617901a617bcbaf13ae5807f44cd0cb206 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 26 Aug 2022 16:58:45 +0800 Subject: [PATCH] Remove special handling of icons --- src/webui/webapplication.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 9308859fd..7865e147b 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -65,7 +65,6 @@ const int MAX_ALLOWED_FILESIZE = 10 * 1024 * 1024; const auto C_SID = QByteArrayLiteral("SID"); // name of session id cookie -const QString PATH_PREFIX_ICONS = u"/icons/"_qs; const QString WWW_FOLDER = u":/www"_qs; const QString PUBLIC_FOLDER = u"/public"_qs; const QString PRIVATE_FOLDER = u"/private"_qs; @@ -140,16 +139,6 @@ void WebApplication::sendWebUIFile() if (pathItems.contains(u".") || pathItems.contains(u"..")) throw InternalServerErrorHTTPError(); - if (!m_isAltUIUsed) - { - if (request().path.startsWith(PATH_PREFIX_ICONS)) - { - const Path imageFilename {request().path.mid(PATH_PREFIX_ICONS.size())}; - sendFile(Path(u":/icons"_qs) / imageFilename); - return; - } - } - const QString path = (request().path != u"/") ? request().path : u"/index.html"_qs;