diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-14 10:36:54 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-14 10:36:54 +0000 |
| commit | 25cb0add9651e280e51bcbd616fc7d8faef8fedf (patch) | |
| tree | 9c51915e0633f6f283d00c20d955e84e0eda1b0d /roundcubemail/program/lib | |
| parent | c5e00971f9171be9cf8e12ac2f9a2d33ea5a0a70 (diff) | |
Prevent from endless recursion when structure string is chopped
git-svn-id: https://svn.roundcube.net/trunk@1645 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/mime.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/roundcubemail/program/lib/mime.inc b/roundcubemail/program/lib/mime.inc index a25658692..6dd3926b8 100644 --- a/roundcubemail/program/lib/mime.inc +++ b/roundcubemail/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){ |
