]> git.ipfire.org Git - thirdparty/jinja.git/commit
Fixed an issue about urlize function 193/head
authormozillazg <opensource.mozillazg@gmail.com>
Mon, 18 Mar 2013 06:27:54 +0000 (14:27 +0800)
committermozillazg <opensource.mozillazg@gmail.com>
Mon, 18 Mar 2013 06:27:54 +0000 (14:27 +0800)
commit6644893ecb1d8a585990e2f47f2f4e37c3ea2ff8
tree249e7cb8b240056ea1317dc214f45e41cbbbdfe3
parent21a2010bf2768bc658e09666c2135063ce004efc
Fixed an issue about urlize function

When URL startswith 'https://', the return is wrong.
Before:

    >>> urlize('https://github.com/')
    u'<a href="http://https://github.com/">https://github.com/</a>'
After:

    >>> urlize('https://github.com/')
    u'<a href="https://github.com/">https://github.com/</a>'
jinja2/utils.py