[Zope] Mozilla for mgmt
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Fri, 16 Jun 2000 16:29:37 +1000
>>> Anthony Baxter wrote
> > > Has anyone besides me had trouble using Mozilla to manage Zope ie access
> > > the control panel via log in?
> > There are regressions in recent Mozilla builds that prevent the authenticat
oops. I forgot this other one that I found. Mozilla writes the
username/password with a trailing null. I just logged it:
http://bugzilla.mozilla.org/show_bug.cgi?id=42782
A patch that allows Zope to workaround this:
diff -u -r1.110 User.py
--- User.py 2000/06/05 15:31:43 1.110
+++ User.py 2000/06/16 06:26:32
@@ -439,6 +439,8 @@
if lower(auth[:6])!='basic ':
return None
name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
+ if password[-1] == '\000':
+ password = password[:-1]
# Check for superuser
super=self._super