diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index af2bee65a..bc161e17e 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -165,14 +165,12 @@ void WebApplication::sendWebUIFile() if (m_isAltUIUsed) { -#ifdef Q_OS_UNIX if (!Utils::Fs::isRegularFile(localPath)) { status(500, u"Internal Server Error"_qs); print(tr("Unacceptable file type, only regular file is allowed."), Http::CONTENT_TYPE_TXT); return; } -#endif QFileInfo fileInfo {localPath.data()}; while (Path(fileInfo.filePath()) != m_rootFolder)