Skip to content

Commit 752a669

Browse files
committed
Allow only IPNS and domain names in rewards
1 parent 8cfb2c2 commit 752a669

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/brave_rewards/browser/rewards_service_impl.cc

+2
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,8 @@ void RewardsServiceImpl::GetPublisherActivityFromUrl(
17571757
if (!ipfs::ParseCIDAndPathFromIPFSUrl(parsed_url, &cid, &path) ||
17581758
cid.empty())
17591759
return;
1760+
if (GetDomainAndRegistry(cid, INCLUDE_PRIVATE_REGISTRIES).empty())
1761+
return;
17601762
origin = GURL(parsed_url.scheme() + "://" + cid);
17611763
baseDomain = cid;
17621764
} else if (parsed_url.SchemeIs(ipfs::kIPFSScheme)) {

0 commit comments

Comments
 (0)