From bf5eeb23a769a2e2b75f432b74f10fdbcfd2f161 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Fri, 27 Sep 2019 13:27:11 +0100 Subject: Fix zip slip security flaw Apply zip slip checking in zip operations throughout the system. Centralizes most of the zip logic in one class. Create tests to zip functionalities and zip slip problem. Change-Id: I721f3d44b34fe6d242c9537f5a515ce1bb534c9a Issue-ID: SDC-1401 Signed-off-by: andre.schmid --- .../main/java/org/openecomp/sdc/ci/tests/utilities/FileHandling.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-ci/src/main/java/org') diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/utilities/FileHandling.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/utilities/FileHandling.java index 1ac4a72059..f8cc628d58 100644 --- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/utilities/FileHandling.java +++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/utilities/FileHandling.java @@ -501,7 +501,7 @@ public class FileHandling { while (entry != null) { String entryName; if (System.getProperty("os.name").contains("Windows")) { - entryName = entry.getName().replaceAll("/", "\\" + File.separator); + entryName = entry.getName().replace("/", "\\" + File.separator); } else { entryName = entry.getName(); } -- cgit 1.2.3-korg