Bug in digest_md5_parse_challenge

Hi all,

This is my first mail to the list, so I'm going to present myself. My name is Pablo and I'm an spanish (not only web) developer which some years of experience in PHP.

I've contacted to you because, installing squirrelmail in a mail server, I've found a little bug in the digest_md5_parse_challenge function. I get the squirrelmail this night from sourceforge's subversion, and I've installed it in a Debian stable + Apache 2 + php5 server up to date.

The specific problem is that, in the file functions/auth.php, at the line 202, checks only if the $challenge variable is set, and don't check if it's set to FALSE, producing a warning message in the lines 203 and 207 when this occurs. This assignment can happen in the line 201, cause the function base64_decode, as the documentation [1] shows, returns FALSE on failure.

I expect to be clear in the explanation. I don't know yet how are you doing to submit bugs and patches (I didn't have time to read it in the documentation of the project), so I'll be grateful if someone explains it to me. I know that many projects only give access at the repository to the most active people, but in the other case I have an account at sourceforge (i02sopop). I don't have many time to develop new features, but I'll use it at home and at work, so I can be a good beta tester and I can also solve some bugs.

Thanks and regards

[1] - http://es.php.net/manual/en/function.base64-decode.php

--
Pablo Álvarez de Sotomayor Posadillo
Ingeniero Técnico en Informática de Sistemas
Usuario #367200 de Linux según
http://counter.li.org/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Gmane