[Vmail-discuss] VE-passwd doesn't like commas
Odhiambo Washington
wash@wananchi.com
Mon, 29 Jul 2002 10:30:50 +0300
* Chris Lightfoot <chris@ex-parrot.com> [20020724 13:34]: wrote:
> On Wed, Jul 24, 2002 at 11:22:33AM +0100, Stephen Marley wrote:
> > > I've noticed a problem with VE-passwd in that it is
> > > impossible to log in to
> > > the vmail web control page with a password set with VE-passwd
> > > if it contains
> > > comma characters ( , )
> > >
> > > Eg,
> > >
> > > ./VE-passwd ',,,,,,'
> > >
> > > generates a usage error and
> > >
> > > ./VE-passwd ',.,.,.' will create an unusable password.
> > >
> > > Is this a documented feature?
> >
> > Excuse me, I was being stupid there. Ignore the first example, however
> >
> > ./VE-passwd mydomain.com ',,,,,,'
> >
> > still creates an unusable password.
>
> Hmm. This one's slightly embarrassing. The function
> http_unescape in DomainAdmin.pm is completely bogus.
> Replace it with
>
> sub http_unescape ($) {
> my $text = shift;
> $text =~ s/+/ /g;
> $text =~ s/%([0-9a-f]{2})/chr(hex($1))/gei;
> return $text;
> }
When I use that, I get this error:
/+/: ?+*{} follows nothing in regexp at /usr/local/www/htdocs/vmail-sql/perlmodules/DomainAdmin.pm line 183.
[Mon Jul 29 06:40:39 2002] [error] [client 212.49.74.2] Premature end of script
headers: /usr/local/www/htdocs/horde/domainadmin/cgi-bin/login
I just commented out the http_eunescape that was there and put in this suggested sunroutine.
-Wash
--
Odhiambo Washington <wash@wananchi.com> "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD."
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-)
Mitchell's Law of Committees:
Any simple problem can be made insoluble if enough meetings are
held to discuss it.