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;