From 29d55c10d0c2bf0037eba4d030caa964ce0c3dce Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 6 May 2009 22:06:12 +0000 Subject: [PATCH] added http:// if missing scheme svn: r12510 --- src/gen/lib/url.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gen/lib/url.py b/src/gen/lib/url.py index df5896e87..a407fcae1 100644 --- a/src/gen/lib/url.py +++ b/src/gen/lib/url.py @@ -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