diff -r 991308f49979 kallithea/lib/helpers.py
--- a/kallithea/lib/helpers.py Thu Apr 16 14:14:59 2015 -0400
+++ b/kallithea/lib/helpers.py Mon Apr 20 16:39:18 2015 +0200
@@ -1243,7 +1243,7 @@
return literal('
%s%s
' % (width, d_a, d_d))
-def urlify_text(text_, safe=True):
+def urlify_text(text_, safe=False):
"""
Extract urls from text and make html links out of them
@@ -1252,10 +1252,13 @@
def url_func(match_obj):
url_full = match_obj.groups()[0]
- return '%(url)s' % ({'url': url_full})
+ return literal('{url}'.format(url=url_full))
+
_newtext = url_re.sub(url_func, text_)
+
if safe:
return literal(_newtext)
+
return _newtext