We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33d0ac commit 7c5343aCopy full SHA for 7c5343a
src/WordPress/Zip/ZipFileEntry.php
@@ -76,7 +76,7 @@ public function __construct(
76
$this->compressionMethod = $compressionMethod;
77
$this->generalPurpose = $generalPurpose;
78
$this->version = $version;
79
- $this->isDirectory = $this->path[- 1] === '/';
+ $this->isDirectory = substr( $this->path, -1 ) === '/';
80
}
81
82
public function isFileEntry() {
tests/unit/zip/ZipFunctionsTest.php
@@ -9,7 +9,7 @@
9
use function WordPress\Zip\zip_extract_to;
10
11
class ZipFunctionsTest extends PHPUnitTestCase {
12
- public function testImmuneToZipSlip() {
+ public function testIsImmuneToZipSlipVulnerability() {
13
$filesystem = new Filesystem();
14
15
$filename = __DIR__ . 'tmp/zip-slip-test.zip';
0 commit comments