Skip to content

Commit

Permalink
PHP compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Feb 4, 2021
1 parent b6da5c3 commit 7d8782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Archive/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ public function _extractList(
$link_depth++;
}
}
if (str_starts_with($v_header['link'], "/") or $link_depth <= 0) {
if (strpos($v_header['link'], "/") === 0 or $link_depth <= 0) {
$this->_error(
'Out-of-path file extraction {'
. $v_header['filename'] . ' --> ' .
Expand Down

0 comments on commit 7d8782d

Please sign in to comment.