Skip to content

EspoCRM – Open Source CRM Application

Remove slash support

Yuriiba65a7b21835
diff --git a/application/Espo/Core/Utils/File/ZipArchive.php b/application/Espo/Core/Utils/File/ZipArchive.php
index 6660982202..720a46c6ff 100644
--- a/application/Espo/Core/Utils/File/ZipArchive.php
+++ b/application/Espo/Core/Utils/File/ZipArchive.php
@@ -75,11 +75,6 @@ class ZipArchive
continue;
}
- // For BC.
- if (str_starts_with($filename, '/')) {
- $filename = substr($filename, 1);
- }
-
if (
str_contains($filename, '..') ||
str_starts_with($filename, '/') ||