From: Daniel Martí Date: Fri, 14 Aug 2015 22:30:03 +0000 (-0700) Subject: Also enforce https on urls without path X-Git-Tag: 0.5.0~200 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ab6d6a3d0be1e6fb6be40445c5ac20efde0b5cf6;p=fdroidserver.git Also enforce https on urls without path --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 12a7900a..d61aab21 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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 = [