summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-18 12:29:48 +0000
committerthomascube <thomas@roundcube.net>2008-08-18 12:29:48 +0000
commite223df762ae099f0e48115aac257f97ead7deb13 (patch)
treebc7e0bd916d27fb459326b03778bc830218d7658 /program/lib
parentae8237334f5c605b7e7d5e986059254b0241ffb8 (diff)
Fix bodystructure parsing (#1485280)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 42aa0fa61..600b0d408 100644
--- a/program/lib/imap.inc
+++ b/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;