fixed issue 1113, thanks Nico

This commit is contained in:
mdipierro
2012-10-25 10:07:39 -05:00
parent b6d68f97d6
commit 99e2397981
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-10-25 10:03:59) stable
Version 2.2.1 (2012-10-25 10:07:33) stable
+4
View File
@@ -1262,6 +1262,10 @@ def render(text,
t = t or ''
a = escape(a) if a else ''
if k:
if '#' in k and not ':' in k.split('#')[0]:
# wikipage, not external url
k=k.replace('#','#'+id_prefix)
if k.startswith('#'):
k = '#'+id_prefix+k[1:]
k = escape(k)