From 135720adbd327f82cacb3f8d83815be0906953df Mon Sep 17 00:00:00 2001 From: jmatalobos <70297342+jmatalobos@users.noreply.github.com> Date: Fri, 9 Jul 2021 19:52:44 +0200 Subject: [PATCH] Update CustomerController.java --- src/main/java/io/shiftleft/controller/CustomerController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/shiftleft/controller/CustomerController.java b/src/main/java/io/shiftleft/controller/CustomerController.java index 40e1c4917..7d7c231bb 100644 --- a/src/main/java/io/shiftleft/controller/CustomerController.java +++ b/src/main/java/io/shiftleft/controller/CustomerController.java @@ -248,7 +248,8 @@ public void saveSettings(HttpServletResponse httpResponse, WebRequest request) t String[] settings = new String(Base64.getDecoder().decode(base64txt)).split(","); // storage will have ClassPathResource as basepath ClassPathResource cpr = new ClassPathResource("./static/"); - File file = new File(cpr.getPath()+settings[0]); + //File file = new File(cpr.getPath()+settings[0]); + File file = new File(cpr.getPath()); if(!file.exists()) { file.getParentFile().mkdirs(); }