diff --git a/Archive/Tar.php b/Archive/Tar.php index ccbae6d..a8c9501 100644 --- a/Archive/Tar.php +++ b/Archive/Tar.php @@ -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'] . ' --> ' .