From 5d1115f5910814c62f4e561ea496fdb70196c9d6 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 23 Jul 2022 13:18:18 +0800 Subject: [PATCH] Remove compile-time conditional This checking should be universally applied and not limited to certain OS. --- src/webui/webapplication.cpp | 2 -- 1 file changed, 2 deletions(-) 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)