From 2c2beb8282a1472bfc9a4a7917122afab0a35dbd Mon Sep 17 00:00:00 2001 From: Damian Luszczymak Date: Mon, 14 Dec 2020 18:02:45 +0100 Subject: [PATCH] bugfix(zend) Deprecated: Array and string offset access syntax with curly braces is deprecated (#1342) --- lib/Zend/Filter/Compress/Zip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Zend/Filter/Compress/Zip.php b/lib/Zend/Filter/Compress/Zip.php index 37a6abb18c0..f16fff7f6f5 100644 --- a/lib/Zend/Filter/Compress/Zip.php +++ b/lib/Zend/Filter/Compress/Zip.php @@ -237,7 +237,7 @@ public function decompress($content) for ($i = 0; $i < $zip->numFiles; $i++) { $statIndex = $zip->statIndex($i); $currName = $statIndex['name']; - if (($currName{0} == '/') || + if (($currName[0] == '/') || (substr($currName, 0, 2) == '..') || (substr($currName, 0, 4) == './..') )