From 7d8782d95f74b5889bfaaad43e74086f1918ec2b Mon Sep 17 00:00:00 2001 From: Michiel Rook Date: Thu, 4 Feb 2021 09:51:52 +0100 Subject: [PATCH] PHP compat fix --- Archive/Tar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] . ' --> ' .