added http:// if missing scheme

svn: r12510
This commit is contained in:
Doug Blank 2009-05-06 22:06:12 +00:00
parent 05d6302cdd
commit 29d55c10d0

View File

@ -141,5 +141,7 @@ class Url(SecondaryObject, PrivacyBase):
return "mailto:" + self.path
elif url.get_type() == UrlType.WEB_FTP and not self.path.startswith("ftp://"):
return "ftp://" + self.path
elif self.parse_path().scheme == '':
return "http://" + self.path
else:
return self.path