Changeset 4064452 in github


Ignore:
Timestamp:
Dec 8, 2010 9:24:53 AM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ad399a9
Parents:
90f81a6
Message:
  • Fix handling of untagged responses for AUTHENTICATE command (#1487450)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r90f81a6 r4064452  
    1919- Better support for READ-ONLY and NOPERM responses handling (#1487083) 
    2020- Add confirmation message on purge/expunge command response 
     21- Fix handling of untagged responses for AUTHENTICATE command (#1487450) 
    2122 
    2223RELEASE 0.5-BETA 
  • program/include/rcube_imap_generic.php

    r90f81a6 r4064452  
    283283    } 
    284284 
    285     // don't use it in loops, until you exactly know what you're doing 
    286285    function readReply(&$untagged=null) 
    287286    { 
     
    422421 
    423422                    $this->putLine($this->nextTag() . " AUTHENTICATE $type"); 
    424                     $line = trim($this->readLine(1024)); 
     423                    $line = trim($this->readReply()); 
    425424 
    426425                    if ($line[0] == '+') { 
     
    472471                // send result 
    473472                $this->putLine($reply); 
    474                 $line = $this->readLine(1024); 
     473                $line = trim($this->readReply()); 
    475474 
    476475                if ($line[0] == '+') { 
     
    492491            } 
    493492 
    494             $line = $this->readLine(1024); 
     493            $line = $this->readReply(); 
    495494            $result = $this->parseResult($line); 
    496495        } 
     
    514513            else { 
    515514                    $this->putLine($this->nextTag() . " AUTHENTICATE PLAIN"); 
    516                     $line = trim($this->readLine(1024)); 
     515                    $line = trim($this->readReply()); 
    517516 
    518517                        if ($line[0] != '+') { 
     
    522521                // send result, get reply and process it 
    523522                $this->putLine($reply); 
    524                 $line = $this->readLine(1024); 
     523                $line = $this->readReply(); 
    525524                $result = $this->parseResult($line); 
    526525            } 
Note: See TracChangeset for help on using the changeset viewer.