PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_POP3 » Bug #2454

AUTH LOGIN user and pass need to be enclosed in double quotes?

Details

Submitted2004-10-05 03:14 UTC
Fromerickoh at jobsfactory dot com
Assigneddamian
StatusClosed
PackageNet_POP3
PHP Version4.3.9
OSLinux
Roadmaps(Not assigned)

Comments

[2004-10-05 03:14 UTC] erickoh at jobsfactory dot com

Description:
------------
inside POP3.php under function _authLOGIN

the $user and $pass are base64_encoded and enclosed in double quotes before being sent. ie:

sprintf('"%s"', base64_encode($user))
sprintf('"%s"', base64_encode($pass))

The double quotes caused a problem with my mailsite 4.5.6 POP3 server // +OK MailSite POP3 Server 4.5.6.0 Ready

Removing the double quotes made it work. ie:

sprintf('%s', base64_encode($user))
sprintf('%s', base64_encode($pass))

However, my redhat fedora core2 POP3 worked fine whether or not there were double quotes.

I'm not familiar with the POP3 RFC, but if the double quotes are not necessary, especially if the subject does not contain a space, perhaps they can be ommited