mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Remove special handling of icons
This commit is contained in:
parent
d693f97a46
commit
3851e76179
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user