4037: get_full_path method of gen.lib.url uses undefined variable

svn: r15517
This commit is contained in:
Doug Blank 2010-05-31 12:56:19 +00:00
parent 6d242d7d78
commit 943cfd07e2

View File

@ -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