From 91c36318d76aeed731897cf5627e4fa6bc8ccd61 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sun, 18 Nov 2012 20:22:42 -0800 Subject: [PATCH] make hostname lowercase before checking --- server-ca/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-ca/policy.py b/server-ca/policy.py index fa3a032a4..f6cc36659 100644 --- a/server-ca/policy.py +++ b/server-ca/policy.py @@ -32,7 +32,7 @@ def in_top_10k(hostname): # That includes subdomains of top 10,000 sites, but not if the subdomain # is below a public suffix (such as a dynamic DNS provider or hosting # umbrella, perhaps) - parts = hostname.split(".") + parts = hostname.lower().split(".") for n in range(2, len(parts)+1): name_or_parent = ".".join(parts[-n:]) if name_or_parent in top_10k: