Fixed an escaping bug in urlize
--HG--
branch : trunk
diff --git a/tests/test_old_bugs.py b/tests/test_old_bugs.py
index 62a9cd6..8ce0a65 100644
--- a/tests/test_old_bugs.py
+++ b/tests/test_old_bugs.py
@@ -28,3 +28,8 @@
'{% for item in [1, 2, 3] %}({{ item }}){% endfor %}')
assert t.render(expr=False) == '[[title]](1)(2)(3)'
assert t.render(expr=True) == '((title))'
+
+
+def test_urlize_filter_escaping(env):
+ tmpl = env.from_string('{{ "http://www.example.org/<foo"|urlize }}')
+ assert tmpl.render() == '<a href="http://www.example.org/<foo">http://www.example.org/<foo</a>'