summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/lib/mime.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/program/lib/mime.inc b/program/lib/mime.inc
index a25658692..6dd3926b8 100644
--- a/program/lib/mime.inc
+++ b/program/lib/mime.inc
@@ -63,12 +63,9 @@ function iml_ParseBSString($str){
$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){