Skip to content

Commit

Permalink
Fix logic bug introduced in 35930e0...
Browse files Browse the repository at this point in the history
  • Loading branch information
mdirolf committed Jan 14, 2012
1 parent e5d4907 commit 542324b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown/inlinepatterns.py
Expand Up @@ -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 ''
Expand Down

0 comments on commit 542324b

Please sign in to comment.