Commits

Erik Romijn committed 1853188

fix bug for https-sites

Comments (0)

Files changed (1)

ponycheckup/check/views.py

 
 
     def sanitize_url(self, url):
-        url = re.sub("http.?//", '', url)
+        url = re.sub("http.?://", '', url)
         url = url.split("/")[0]
         if not re.match("^[A-z0-9\.-]+$", "foo.com"):
             return False
 
-        return "http://"+url
+        return "http://"+url