4037: get_full_path method of gen.lib.url uses undefined variable
svn: r15517
This commit is contained in:
parent
6d242d7d78
commit
943cfd07e2
@ -139,7 +139,7 @@ class Url(SecondaryObject, PrivacyBase):
|
||||
"""
|
||||
if self.type == UrlType.EMAIL and not self.path.startswith("mailto:"):
|
||||
return "mailto:" + self.path
|
||||
elif url.get_type() == UrlType.WEB_FTP and not self.path.startswith("ftp://"):
|
||||
elif self.type == UrlType.WEB_FTP and not self.path.startswith("ftp://"):
|
||||
return "ftp://" + self.path
|
||||
elif self.parse_path().scheme == '':
|
||||
return "http://" + self.path
|
||||
|
Loading…
Reference in New Issue
Block a user