1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

add check to gen_https_names to make sure domains contains a list of strings

This commit is contained in:
James Kasten
2012-11-17 04:34:06 -05:00
parent db52caa7e9
commit be0408dc24

View File

@@ -273,7 +273,9 @@ def gen_https_names(domains):
result = result + "and "
if len(domains) == 2:
return "https://" + domains[0] + " and https://" + domains[1]
result = result + "https://" + domains[len(domains)-1]
if domains:
result = result + "https://" + domains[len(domains)-1]
return result
def challenge_factory(r, req_filepath, key_filepath, config):