Index: cms/sources.py |
=================================================================== |
--- a/cms/sources.py |
+++ b/cms/sources.py |
@@ -28,16 +28,20 @@ |
class Source: |
def resolve_link(self, url, locale): |
parsed = urlparse.urlparse(url) |
page = parsed.path |
if parsed.scheme != '' or page.startswith('/') or page.startswith('.'): |
# Not a page link |
return None, None |
+ if url.startswith('tel:'): |
+ # Workaround for 'tel' scheme not recognized in Python <=2.7.3. |
+ return None, None |
+ |
if page == '' and url != '': |
# Page-relative link |
return None, None |
config = self.read_config() |
default_locale = config.get('general', 'defaultlocale') |
default_page = config.get('general', 'defaultpage') |
alternative_page = '/'.join([page.rstrip('/'), default_page]).lstrip('/') |