added http:// if missing scheme
svn: r12510
This commit is contained in:
parent
05d6302cdd
commit
29d55c10d0
@ -141,5 +141,7 @@ class Url(SecondaryObject, PrivacyBase):
|
|||||||
return "mailto:" + self.path
|
return "mailto:" + self.path
|
||||||
elif url.get_type() == UrlType.WEB_FTP and not self.path.startswith("ftp://"):
|
elif url.get_type() == UrlType.WEB_FTP and not self.path.startswith("ftp://"):
|
||||||
return "ftp://" + self.path
|
return "ftp://" + self.path
|
||||||
|
elif self.parse_path().scheme == '':
|
||||||
|
return "http://" + self.path
|
||||||
else:
|
else:
|
||||||
return self.path
|
return self.path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user