diff --git a/src/General/lib/fetcher.class b/src/General/lib/fetcher.class index 85723cc0f..c4e791fcf 100644 --- a/src/General/lib/fetcher.class +++ b/src/General/lib/fetcher.class @@ -92,8 +92,8 @@ class Fetcher {media} = response if media then for key of media when /_link$/.test key # Image/thumbnail URLs loaded over HTTP can be modified in transit. - # Require them to be from a known HTTP host so that no referrer is sent to them from an HTTPS page. - delete media[key] unless media[key]? and media[key].match(/^(http:\/\/[^\/]+\/)?/)[0] in archive.imagehosts + # Require them to be from an HTTP host so that no referrer is sent to them from an HTTPS page. + delete media[key] unless media[key]?.match /^http:\/\// @parseArchivedPost response, url return true return false