mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
allow https urls too
This commit is contained in:
parent
ad4cff620a
commit
5db68f9f41
1 changed files with 1 additions and 1 deletions
|
@ -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 += "/"
|
||||
|
|
Loading…
Reference in a new issue