fixed issue 1113, thanks Nico
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.2.1 (2012-10-25 10:03:59) stable
|
||||
Version 2.2.1 (2012-10-25 10:07:33) stable
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user