chiark / gitweb /
Also enforce https on urls without path
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 14 Aug 2015 22:30:03 +0000 (15:30 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 14 Aug 2015 22:30:03 +0000 (15:30 -0700)
fdroidserver/lint.py

index 12a7900a5763b6ab217e9eaf220948203b008f59..d61aab2140449a53fde0a44f2139b6aefef70a1b 100644 (file)
@@ -31,7 +31,7 @@ options = None
 
 
 def enforce_https(domain):
-    return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'/.*'),
+    return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'(/.*)?'),
             domain + " URLs should always use https://")
 
 https_enforcings = [