summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-18 12:29:48 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-18 12:29:48 +0000
commit196cfa0d479d2ac25773ddb8fcdc36eb4ea498c5 (patch)
tree40db9c96e99c2c2530113eff74a04ec0ab72cfd6 /roundcubemail/program/lib
parentfa9acd9b840a366f3f7b688b5310e8804f13615a (diff)
Fix bodystructure parsing (#1485280)
git-svn-id: https://svn.roundcube.net/trunk@1657 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
-rw-r--r--roundcubemail/program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 42aa0fa61..600b0d408 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -2580,7 +2580,7 @@ function iil_C_FetchStructureString(&$conn, $folder, $id) {
$result .= $line;
} while (!preg_match("/^$key/", $line));
- $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13, -(strlen($result)-strrpos($result, $key)+1)));
+ $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13));
}
}
return $result;