php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25986 POP3 auth with Net_POP3
Submitted: 2003-10-25 12:16 UTC Modified: 2004-09-01 16:11 UTC
From: elf@php.net Assigned:
Status: Not a bug Package: PEAR related
PHP Version: 4.3.3 OS: Red Hat Linux 9+rawhide
Private report: No CVE-ID: None
 [2003-10-25 12:16 UTC] elf@php.net
Description:
------------
The present Auth/POP3 seem to be only for APOP.
However, I attest by POP3.
Then, I created the easy patch.
Please make it reference.

--- lib/pear/Auth/Container/POP3.php	2003-10-23 23:48:58.000000000 +0900
+++ /usr/share/pear/Auth/Container/POP3.php	2003-10-23 23:50:28.000000000 +0900
@@ -47,12 +47,6 @@
      */
     var $port='110';
 
-    /**
-     * Use APOP Auth
-     * @var boolean TRUE ... APOP/FALSE ... NO APOP
-     */
-    var $apop = true;
-
     // {{{ Constructor
 
     /**
@@ -71,20 +65,12 @@
                 if(isset($server['port'])){
                     $this->port = $server['port'];
                 }
-                if(isset($server['apop'])){
-                    $this->apop = $server['apop'];
-                }
             }
             else{
                 if(strstr($server, ':')){
                     $serverparts = explode(':', trim($server));
                     $this->server = $serverparts[0];
                     $this->port = $serverparts[1];
-                    if ( $serverparts[1] == '' || !strcasecmp( $serverparts[1], 'APOP')) {
-                      $this->apop = TRUE;
-                    } else {
-                      $this->apop = FALSE;
-                    }
                 }
                 else
                 {
@@ -111,7 +97,7 @@
         if(!$res){
             return($res);
         }
-        $result = $pop3->login($username, $password, $this->apop);
+        $result = $pop3->login($username, $password);
         $pop3->disconnect();
         return $result;
     }


Expected result:
----------------
ex)
$auth = new Auth( 'POP3', 'localhost:110:pop3', 'login');

$params = array( 'host'=>'localhost', 'port'=>110, 'apop'=>false);
$auth = new Auth( 'POP3', $params, 'login');




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-01 16:11 UTC] alan_k@php.net
can you report this on pear.php.net - none of the pear maintainers read bugs.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC