Changeset 1645 in subversion


Ignore:
Timestamp:
Aug 14, 2008 6:36:54 AM (5 years ago)
Author:
thomasb
Message:

Prevent from endless recursion when structure string is chopped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/mime.inc

    r793 r1645  
    6464                $endPos = iml_ClosingParenPos($str, $i); 
    6565                $partLen = $endPos - $i; 
     66                if ($partLen < 0) break; 
    6667                $part = substr($str, $i, $partLen); 
    6768                $a[$id] = iml_ParseBSString($part); //send part string 
    68                 if ($verbose){ 
    69                                         echo "{>".$endPos."}"; 
    70                                         flush(); 
    71                                 } 
    7269                $i = $endPos; 
    7370            }else $a[$id].=$str[$i]; //add to current element in array 
Note: See TracChangeset for help on using the changeset viewer.