1.1 --- a/examples/Common/Login/__init__.py Sat May 29 19:33:09 2004 +0000
1.2 +++ b/examples/Common/Login/__init__.py Sat May 29 21:08:48 2004 +0000
1.3 @@ -36,6 +36,7 @@
1.4 # When authentication fails or is yet to take place, show the login
1.5 # screen.
1.6
1.7 + trans.set_content_type(WebStack.Generic.ContentType("text/html"))
1.8 out = trans.get_response_stream()
1.9 out.write("""
1.10 <html>
1.11 @@ -54,6 +55,12 @@
1.12 </html>
1.13 """ % redirect)
1.14
1.15 + def _decode(self, url):
1.16 +
1.17 + "Decode the given 'url' for redirection purposes."
1.18 +
1.19 + return url.replace("%3f", "?").replace("%26", "&")
1.20 +
1.21 class LoginAuthenticator:
1.22
1.23 def __init__(self, secret_key, credentials, cookie_name=None):