History

removed extra debug, added debug for user awareness.

Kasen IO committed 6 years ago

Commit 7a985b41 parent fd5ee3e2 files · +3 −5Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−2
@@ -2374,9 +2374,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 2373 unmodified lines
23742374 bool whitelistEnabled = _whitelistEnabled.get();
23752375
23762376 if (!whitelistEnabled) {
2377+ qCDebug(scriptengine) << "Whitelist Enabled: " << whitelistEnabled;
23772378 passList = true;
23782379 }
2379− qCDebug(scriptengine) << "Whitelist Enabled: " << whitelistEnabled;
23802380
23812381 // PULL SAFEURLS FROM INTERFACE.JSON Settings
23822382 QVariant raw = Setting::Handle<QVariant>("private/settingsSafeURLS").get();
@@ -2391,7 +2391,7 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 8 unmodified lines
23912391 QString domainSafeURL = URL_SCHEME_HIFI + "://" + currentDomain;
23922392 for (const auto& str : safeURLPrefixes) {
23932393 if (domainSafeURL.startsWith(str) || domainSafeIP.startsWith(str)) {
2394− qCDebug(scriptengine) << whitelistPrefix << "Whitelist Bypassed. Current Domain Host: "
2394+ qCDebug(scriptengine) << whitelistPrefix << "Whitelist Bypassed, entire domain is whitelisted. Current Domain Host: "
23952395 << nodeList->getDomainHandler().getHostname()
23962396 << "Current Domain: " << currentDomain;
23972397 passList = true;