From 542324b626e96eb368c1cac34beba2b95af5deb7 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Sat, 14 Jan 2012 12:47:20 -0500 Subject: [PATCH] Fix logic bug introduced in 35930e0928e19... --- markdown/inlinepatterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py index 51b06d91b..1829348cf 100644 --- a/markdown/inlinepatterns.py +++ b/markdown/inlinepatterns.py @@ -322,7 +322,7 @@ def sanitize_url(self, url): return '' locless_schemes = ['', 'mailto', 'news'] - if netloc == '' or scheme not in locless_schemes: + if netloc == '' and scheme not in locless_schemes: # This fails regardless of anything else. # Return immediately to save additional proccessing return ''