Skip to content

Commit

Permalink
bugfix(zend) Deprecated: Array and string offset access syntax with c…
Browse files Browse the repository at this point in the history
…urly braces is deprecated (#1342)
  • Loading branch information
daim2k5 authored Dec 14, 2020
1 parent 79e4452 commit 2c2beb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zend/Filter/Compress/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) == './..')
)
Expand Down

0 comments on commit 2c2beb8

Please sign in to comment.