aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorViktor Szakats2015-05-08 05:43:49 +0200
committerJack Nagel2015-05-08 00:44:01 -0400
commit6199da8fc73c2b36d69a41771612b25db27c88ed (patch)
tree95a1e6cfeb19225a93b9d2cf90ccc90c020c265e /Library/Homebrew/cmd
parent3895a0ae232e15380f00db9274494d4d90493304 (diff)
downloadbrew-6199da8fc73c2b36d69a41771612b25db27c88ed.tar.bz2
audit: enforce SSL/TLS MetaCPAN urls
Closes Homebrew/homebrew#39513. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index bf004b0a7..0bcca968f 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