Changeset 5593 for trunk/expressoAdmin1_2/inc/sieve-php.lib.php
- Timestamp:
- 03/01/12 10:37:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/sieve-php.lib.php
r506 r5593 121 121 122 122 $this->line=fgets($this->fp,1024); 123 $this->token = split(" ", $this->line, 2);123 $this->token = preg_split('/ /', $this->line, 2); 124 124 125 125 if($this->token[0] == "NO"){ … … 127 127 NO ("yyyyy") "zzzzzzz" or, two, NO {yyyyy} "zzzzzzzzzzz" */ 128 128 $this->x = 0; 129 list($this->ltoken, $this->mtoken, $this->rtoken) = split(" ", $this->line." ", 3);129 list($this->ltoken, $this->mtoken, $this->rtoken) = preg_split('/ /', $this->line." ", 3); 130 130 if($this->mtoken[0] == "{"){ 131 131 while($this->mtoken[$this->x] != "}" or $this->err_len < 1){ … … 372 372 //So, if we see IMLEMENTATION in the first line, then we are done. 373 373 374 if( ereg("IMPLEMENTATION",$this->line))374 if(preg_match('/IMPLEMENTATION/',$this->line)) 375 375 { 376 376 //we're on the Cyrus V2 sieve server … … 389 389 $this->cap_type="auth"; 390 390 391 $this->modules = split(" ", $this->item[1]);391 $this->modules = preg_split('/ /', $this->item[1]); 392 392 if(is_array($this->modules)){ 393 393 foreach($this->modules as $this->module) … … 422 422 423 423 //then split again at the ", " stuff. 424 $this->modules = split($this->modules, ", ");424 $this->modules = preg_split("/$this->modules/", ', '); 425 425 426 426 //fill up our $this->modules property … … 767 767 //So, if we see IMLEMENTATION in the first line, then we are done. 768 768 769 if( ereg("IMPLEMENTATION",$this->line))769 if(preg_match('/IMPLEMENTATION/',$this->line)) 770 770 { 771 771 //we're on the Cyrus V2 sieve server … … 784 784 $this->cap_type="auth"; 785 785 786 $this->modules = split(" ", $this->item[1]);786 $this->modules = preg_split('/ /', $this->item[1]); 787 787 if(is_array($this->modules)){ 788 788 foreach($this->modules as $this->module) … … 814 814 815 815 //then split again at the ", " stuff. 816 $this->modules = split($this->modules, ", ");816 $this->modules = preg_split("/$this->modules/", ', '); 817 817 818 818 //fill up our $this->modules property
Note: See TracChangeset
for help on using the changeset viewer.