From 6199da8fc73c2b36d69a41771612b25db27c88ed Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 8 May 2015 05:43:49 +0200 Subject: [PATCH] audit: enforce SSL/TLS MetaCPAN urls Closes Homebrew/homebrew#39513. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index bf004b0a71..0bcca968f7 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -863,6 +863,8 @@ class ResourceAuditor problem "Bintray urls should be https://, not http (url is #{p})." when %r[^http://tools\.ietf\.org/] problem "ietf urls should be https://, not http (url is #{p})." + when %r[^http://search\.mcpan\.org/CPAN/(.*)]i + problem "MetaCPAN url should be `https://cpan.metacpan.org/#{$1}` (url is #{p})." end end