[Zope-CMF] [PATCH] - glitch in registered.py

Andrew Sawyers andrew@digicool.com
Fri, 29 Jun 2001 10:57:09 -0400


Thanks,
I fixed this in CVS, but did it a little differently since I don't like the
idea of the password being visible in the redirected URL.
Andrew

> -----Original Message-----
> From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> Of Jonathan Corbet
> Sent: Thursday, June 28, 2001 6:14 PM
> To: zope-cmf@zope.org
> Subject: [Zope-CMF] [PATCH] - glitch in registered.py
>
>
> Howdy,
>
> I did a cvs update today for the first time in a little while, and quickly
> found that the "join" option generated a traceback.  I guess that, in the
> transition from DTML to .py, somebody forgot that the username
> and password
> needed to be passed through.
>
> Here's a quick, hacky fix:
>
> Index: CMFDefault/skins/control/register.py
> ===================================================================
> RCS file: /cvs-repository/CMF/CMFDefault/skins/control/register.py,v
> retrieving revision 1.1
> diff -r1.1 register.py
> 22c22,24
> <     return REQUEST.RESPONSE.redirect(context.absolute_url() +
> '/registered')
> ---
> >     return REQUEST.RESPONSE.redirect(context.absolute_url() +
> '/registered' +
> >                                      '?username=%s' %
> REQUEST['username'] +
> >                                      '&password=%s' % password)
>
> jon
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and
> feature requests
>