# HG changeset patch # User Paul Boddie # Date 1374243935 -7200 # Node ID bd751ca0e7f8170014c39e6397ff6c965f5c3444 # Parent 3255ed8e242632c3588853e209eeeebc6e4ae788 Fixed the URL-quoting in the redirect script. Added a redirect-related "to do" item and a reminder about image attributes. diff -r 3255ed8e2426 -r bd751ca0e7f8 TO_DO.txt --- a/TO_DO.txt Thu Jul 18 20:23:42 2013 +0200 +++ b/TO_DO.txt Fri Jul 19 16:25:35 2013 +0200 @@ -31,11 +31,21 @@ Consider incorporating activity information for each user using a macro placed on user home pages +Redirects + + Maybe redirect to specific revisions rather than to pages; thus the mapping + would be from identifiers to page names plus revision numbers + Issues ====== +DEV/LogoSubmissions (8978724) +DEV/LogoSubmissions (14352724) + + Image attributes in Confluence and XHTML, such as alignment, width and height + DEV/GSoC 2011 - Conversion from Confluence wiki to Moin (11960378) End tags for strong, em immediately followed by start tags for strong, em diff -r 3255ed8e2426 -r bd751ca0e7f8 scripts/redirect.py --- a/scripts/redirect.py Thu Jul 18 20:23:42 2013 +0200 +++ b/scripts/redirect.py Fri Jul 19 16:25:35 2013 +0200 @@ -5,6 +5,7 @@ wiki pages. """ +from urllib import quote import cgi, os, sys # Location of the mapping. @@ -44,7 +45,7 @@ sys.exit(0) def redirect(pagename): - location = "%s/%s" % (URL_PREFIX, pagename) + location = "%s/%s" % (URL_PREFIX, quote(pagename)) print """\ Status: 302 Redirect to page