diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-12-29 02:11:48 +0800 |
---|---|---|
committer | Mike Dirolf <mike@dirolf.com> | 2012-01-15 00:45:36 +0800 |
commit | 35930e0928e19e37f81c906d5d11dfcc1087092b (patch) | |
tree | e875b58aa7d3a23898b02d90dfa58d6a40399297 /tests/misc/em-around-links.txt | |
parent | 12baab2e34a49530f3b712d2faaf59560ff993ef (diff) | |
download | markdown-35930e0928e19e37f81c906d5d11dfcc1087092b.tar.gz markdown-35930e0928e19e37f81c906d5d11dfcc1087092b.tar.bz2 markdown-35930e0928e19e37f81c906d5d11dfcc1087092b.zip |
Fixed #69. url_sanitize no longer crashes on unparsable urls.
Also optimized the code to bypass parsing when not in safe_mode and return
immediately upon failure rather than continue parsing when in safe_mode.
Note that in Python2.7+ more urls may fail than in older versions because
IPv6 support was added to urlparse and it apparently mistakenly identifies some
urls as IPv6 when they are not. Seeing this only applies to safe_mode now,
I don't really care.
Diffstat (limited to 'tests/misc/em-around-links.txt')
0 files changed, 0 insertions, 0 deletions