Commit e4541a63 authored by Valentin Samir's avatar Valentin Samir

[wiki/categorie_public] Strip final / then infering page name from url

parent 614452a3
......@@ -38,7 +38,10 @@ class PublicCategories(AnonymousAuth):
sys.stderr.write("Getting page from cache")
page = request.page
else:
page = Page(request, unicode(urllib.unquote(p.path[1:]),'utf-8'))
pagename=unicode(urllib.unquote(p.path[1:]),'utf-8')
if pagename.endswith(u'/'):
pagename=pagename[:-1]
page = Page(request, pagename)
acl = page.getACL(request)
if acl.acl and [a[0] for a in acl.acl if a[0] == 'All' and a[1].get('read',False)]:
sys.stderr.write("acl All:read\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment