Changeset 2652


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.SieveS.inc.php

    r2360 r2652  
    188188 
    189189                //Verifica a conexao 
    190                 if(!$this->socket){ 
     190                if(!is_resource($this->socket)){ 
    191191                        $this->errstr = "listscripts: sem conexão para o servidor $this->host"; 
    192192                        return false; 
     
    197197         
    198198                $said = $this->read(); 
    199                 while (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said)) { 
     199                while (is_resource($this->socket) && (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said))) { 
    200200         
    201201                    // Cyrus v1 script lines look like '"script*"' with the  
Note: See TracChangeset for help on using the changeset viewer.