Ignore:
Timestamp:
Feb 21, 2009 1:57:47 PM (4 years ago)
Author:
alec
Message:

#1485741: fix installer after some last changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r2291 r2306  
    12341234} 
    12351235 
    1236 /** 
    1237  * Explode quoted string 
    1238  *  
    1239  * @param string Delimiter expression string for preg_match() 
    1240  * @param string Input string 
    1241  */ 
    1242 function rcube_explode_quoted_string($delimiter, $string) 
    1243 { 
    1244   $result = array(); 
    1245   $strlen = strlen($string); 
    1246  
    1247   for ($q=$p=$i=0; $i < $strlen; $i++) { 
    1248     if ($string[$i] == "\"" && $string[$i-1] != "\\") { 
    1249       $q = $q ? false : true; 
    1250     }  
    1251     else if (!$q && preg_match("/$delimiter/", $string[$i])) { 
    1252       $result[] = substr($string, $p, $i - $p); 
    1253       $p = $i + 1; 
    1254     } 
    1255   } 
    1256    
    1257   $result[] = substr($string, $p); 
    1258   return $result; 
    1259 } 
    1260  
    12611236?> 
Note: See TracChangeset for help on using the changeset viewer.