mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 01:44:26 +00:00
Remove compile-time conditional
This checking should be universally applied and not limited to certain OS.
This commit is contained in:
parent
88d9e82fc9
commit
5d1115f591
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user