summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch
blob: 74d5b796704bda022cfd190f5becb4371da620e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Split up the learn.doubleclick.net string literal to prevent domain substitution breaking compilation due to the use of the excluded HSTS list json file in this code.

--- net/tools/transport_security_state_generator/transport_security_state_generator.cc.orig
+++ net/tools/transport_security_state_generator/transport_security_state_generator.cc
@@ -125,7 +125,7 @@ bool CheckDuplicateEntries(const Transpo
 bool CheckNoopEntries(const TransportSecurityStateEntries& entries) {
   for (const auto& entry : entries) {
     if (!entry->force_https && entry->pinset.empty() && !entry->expect_ct) {
-      if (entry->hostname == "learn.doubleclick.net") {
+      if (entry->hostname == "learn.double" "click." "net") {
         // This entry is deliberately used as an exclusion.
         continue;
       }