thomascube
2008-08-14 1b5deba5fa2e39fc8d32294b0b71577e382357fa
Prevent from endless recursion when structure string is chopped

1 files modified
5 ■■■■ changed files
program/lib/mime.inc 5 ●●●● patch | view | raw | blame | history
program/lib/mime.inc
@@ -63,12 +63,9 @@
                $i++;
                $endPos = iml_ClosingParenPos($str, $i);
                $partLen = $endPos - $i;
                if ($partLen < 0) break;
                $part = substr($str, $i, $partLen);
                $a[$id] = iml_ParseBSString($part); //send part string
                if ($verbose){
                    echo "{>".$endPos."}";
                    flush();
                }
                $i = $endPos;
            }else $a[$id].=$str[$i]; //add to current element in array
        }else if ($in_quote){