From 665870b846250aa136a1cc61dfc509f886102514 Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Wed, 14 Jun 2017 12:06:29 -0700 Subject: [PATCH] comment per cr --- assignment-client/src/avatars/AvatarMixer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assignment-client/src/avatars/AvatarMixer.cpp b/assignment-client/src/avatars/AvatarMixer.cpp index b1841eb4e5..c8b68a740c 100644 --- a/assignment-client/src/avatars/AvatarMixer.cpp +++ b/assignment-client/src/avatars/AvatarMixer.cpp @@ -231,6 +231,9 @@ void AvatarMixer::manageIdentityData(const SharedNodePointer& node) { } bool AvatarMixer::isAvatarInWhitelist(const QUrl& url) { + // The avatar is in the whitelist if: + // 1. The avatar's URL's host matches one of the hosts of the URLs in the whitelist AND + // 2. The avatar's URL's path starts with the path of that same URL in the whitelist for (const auto& whiteListedPrefix : _avatarWhitelist) { auto whiteListURL = QUrl::fromUserInput(whiteListedPrefix); // check if this script URL matches the whitelist domain and, optionally, is beneath the path