Commit 6ffb92b7 authored by Remi Oudin's avatar Remi Oudin

On corrige l'encodage pour le wiki.

On encode en ascii, et on ignore les erreurs.
parent 8089c878
...@@ -38,7 +38,7 @@ class PublicCategories(AnonymousAuth): ...@@ -38,7 +38,7 @@ class PublicCategories(AnonymousAuth):
sys.stderr.write("Getting page from cache") sys.stderr.write("Getting page from cache")
page = page =
else: else:
pagename=urllib.unquote(p.path[1:]) pagename= urllib.unquote(p.path[1:]).encode('ascii', 'ignore')
if pagename.endswith(u'/'): if pagename.endswith(u'/'):
pagename=pagename[:-1] pagename=pagename[:-1]
page = Page(request, pagename) page = Page(request, pagename)
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