From 17d8423299039f9d3245f74be6c72d4461aa533d Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 9 Aug 2019 22:03:20 +0800 Subject: [PATCH] Fix PHP 7.4 deprecation: array/string curly braces access (#6884) Signed-off-by: Jack Cherng --- program/lib/Roundcube/rcube_tnef_decoder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/lib/Roundcube/rcube_tnef_decoder.php b/program/lib/Roundcube/rcube_tnef_decoder.php index 2cd920c4c..e0073877c 100644 --- a/program/lib/Roundcube/rcube_tnef_decoder.php +++ b/program/lib/Roundcube/rcube_tnef_decoder.php @@ -493,21 +493,21 @@ class rcube_tnef_decoder $length_preload = strlen($preload); for ($cnt = 0; $cnt < $length_preload; $cnt++) { - $uncomp .= $preload{$cnt}; + $uncomp .= $preload[$cnt]; ++$out; } while ($out < ($size + $length_preload)) { if (($flag_count++ % 8) == 0) { - $flags = ord($data{$in++}); + $flags = ord($data[$in++]); } else { $flags = $flags >> 1; } if (($flags & 1) != 0) { - $offset = ord($data{$in++}); - $length = ord($data{$in++}); + $offset = ord($data[$in++]); + $length = ord($data[$in++]); $offset = ($offset << 4) | ($length >> 4); $length = ($length & 0xF) + 2; $offset = ((int)($out / 4096)) * 4096 + $offset; @@ -524,7 +524,7 @@ class rcube_tnef_decoder } } else { - $uncomp .= $data{$in++}; + $uncomp .= $data[$in++]; ++$out; } }