Ignore:
Timestamp:
04/27/12 09:17:30 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

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

    r5509 r6057  
    7777                    elseif (preg_match("/^\"SASL\" +\"(.*)\"/",$said,$bits)) { 
    7878                                $auth_types = $bits[1]; 
    79                                 $this->saslmethods = split(" ", $auth_types); 
     79                                $this->saslmethods = preg_split('/ /', $auth_types); 
    8080                    } 
    8181                    elseif (preg_match("/^\"SIEVE\" +\"(.*)\"/",$said,$bits)) { 
    8282                                $extensions = $bits[1]; 
    83                                 $this->extensions = split(" ", $extensions); 
     83                                $this->extensions = preg_split('/ /', $extensions); 
    8484                    } 
    8585                elseif (preg_match("/^\"STARTTLS\"/",$said)){ 
     
    9898                        if (preg_match("/SASL=\{(.+)\}/",$sasl_str,$morebits)) { 
    9999                            $auth_types = $morebits[1]; 
    100                             $this->saslmethods = split(", ", $auth_types); 
     100                            $this->saslmethods = preg_split('/, /', $auth_types); 
    101101                        }else { 
    102102                                // a bit desperate if we get here. 
Note: See TracChangeset for help on using the changeset viewer.