mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +02:00
Fix out of date comment
This commit is contained in:
parent
4b317a84d8
commit
8e9c1e5c0a
1 changed files with 4 additions and 3 deletions
|
@ -52,10 +52,11 @@ namespace {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We can potentially add whitelisting logic or development environment variables that
|
||||||
|
// will allow people to override this setting on a per-client basis here.
|
||||||
QString targetFilePath = QFileInfo(requestUrl.toLocalFile()).canonicalFilePath();
|
QString targetFilePath = QFileInfo(requestUrl.toLocalFile()).canonicalFilePath();
|
||||||
|
|
||||||
// If we get here, then it's a local file that isn't whitelisted and the
|
// If we get here, we've determined it's a local file and we have no reason not to block it
|
||||||
// developer mode environment variable is not enabled. Block access to the file
|
|
||||||
qWarning() << "Blocking web access to local file path" << targetFilePath;
|
qWarning() << "Blocking web access to local file path" << targetFilePath;
|
||||||
info.block(true);
|
info.block(true);
|
||||||
return true;
|
return true;
|
||||||
|
@ -101,4 +102,4 @@ void RequestFilters::interceptFileType(QWebEngineUrlRequestInfo& info, QQmlConte
|
||||||
info.setHttpHeader(CONTENT_HEADER.toLocal8Bit(), TYPE_VALUE.toLocal8Bit());
|
info.setHttpHeader(CONTENT_HEADER.toLocal8Bit(), TYPE_VALUE.toLocal8Bit());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue