Skip to content

EspoCRM – Open Source CRM Application

Print path

Yuriifc50db841399
diff --git a/application/Espo/Core/Utils/File/ZipArchive.php b/application/Espo/Core/Utils/File/ZipArchive.php
index afcddd0b43..720a46c6ff 100644
--- a/application/Espo/Core/Utils/File/ZipArchive.php
+++ b/application/Espo/Core/Utils/File/ZipArchive.php
@@ -80,7 +80,7 @@ class ZipArchive
str_starts_with($filename, '/') ||
str_starts_with($filename, '\\')
) {
- throw new RuntimeException("No allowed path.");
+ throw new RuntimeException("No allowed path '$filename'.");
}
$zip->extractTo($destination, $filename);