called with the wrong number of parameters (otherwise it goes boom)
* user_ops.c: CtdlLoginExistingUser() was calling strproc() on the supplied
name, which killed the ability to log in with your email address (because
it stripped the @ symbol). Changed it to striplt() instead.
$Log$
+ Revision 629.1 2005/01/07 03:05:04 ajc
+ * serv_imap.c: fail with a "BAD" error response if the LOGIN command is
+ called with the wrong number of parameters (otherwise it goes boom)
+ * user_ops.c: CtdlLoginExistingUser() was calling strproc() on the supplied
+ name, which killed the ability to log in with your email address (because
+ it stripped the @ symbol). Changed it to striplt() instead.
+
Revision 629.0 2005/01/04 03:57:32 ajc
* THIS IS 6.29
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
*/
void imap_login(int num_parms, char *parms[])
{
+ if (num_parms != 4) {
+ cprintf("%s BAD incorrect number of parameters\r\n", parms[0]);
+ return;
+ }
+
if (CtdlLoginExistingUser(parms[2]) == login_ok) {
if (CtdlTryPassword(parms[3]) == pass_ok) {
cprintf("%s OK login successful\r\n", parms[0]);
if (trythisname == NULL) return login_not_found;
safestrncpy(username, trythisname, USERNAME_SIZE);
- strproc(username);
+ striplt(username);
if ((CC->logged_in)) {
return login_already_logged_in;