Changeset 2653 for branches/2.0


Ignore:
Timestamp:
04/28/10 16:02:35 (14 years ago)
Author:
niltonneto
Message:

Ticket #1054 - Corrigido problema de loop infinito na class Sieve.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/class.SieveS.inc.php

    r1149 r2653  
    178178 
    179179                //Verifica a conexao 
    180                 if(!$this->socket){ 
     180                if(!is_resource($this->socket)){ 
    181181                        $this->errstr = "listscripts: sem conexão para o servidor $this->host"; 
    182182                        return false; 
     
    187187         
    188188                $said = $this->read(); 
    189                 while (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said)) { 
     189                while (is_resource($this->socket) && (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said))) { 
    190190         
    191191                    // Cyrus v1 script lines look like '"script*"' with the  
Note: See TracChangeset for help on using the changeset viewer.