small adjustment to ph thumb proxy

This commit is contained in:
Simon
2026-04-05 16:18:53 +00:00
parent 78e852c29d
commit 9773590f64

View File

@@ -926,8 +926,8 @@ impl PornhubThumbPolicy {
return false; return false;
} }
let Some(host) = url.host_str() else { return false; }; let Some(host) = url.host_str() else { return false; };
// Allow official Pornhub hosts and their CDN hosts // Only allow the specific Pornhub CDN host used for thumbnails
host.contains("phncdn") || host.ends_with("pornhub.com") host.eq_ignore_ascii_case("pix-cdn77.phncdn.com")
} }
} }