Extension file with slash BC support

This commit is contained in:
Yurii
2026-05-27 13:27:09 +03:00
parent fc50db8413
commit f77415f03a

View File

@@ -75,6 +75,11 @@ class ZipArchive
continue;
}
// For BC.
if (str_starts_with($filename, '/')) {
$filename = substr($filename, 1);
}
if (
str_contains($filename, '..') ||
str_starts_with($filename, '/') ||