allow https urls too

This commit is contained in:
Damien Elmes 2009-06-29 14:14:40 +09:00
parent ad4cff620a
commit 5db68f9f41

View file

@ -471,7 +471,7 @@ order by n""", id=card.id)
unicode(self.dialog.tags.text()))
url = unicode(self.dialog.mediaURL.text())
if url:
if not re.match("^(http|ftp)://", url, re.I):
if not re.match("^(http|https|ftp)://", url, re.I):
url = "http://" + url
if not url.endswith("/"):
url += "/"