From 0c968d3b19978f9ce03c40efca7463c1c6574d37 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Tue, 31 Dec 2024 12:59:14 +0000 Subject: [PATCH] mobb fix commit: efc4ff6f-e16d-4683-9a4d-c0735501a6a3 --- src/org/opencms/synchronize/CmsSynchronize.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/opencms/synchronize/CmsSynchronize.java b/src/org/opencms/synchronize/CmsSynchronize.java index 86cccae765f..a8241451d79 100644 --- a/src/org/opencms/synchronize/CmsSynchronize.java +++ b/src/org/opencms/synchronize/CmsSynchronize.java @@ -55,6 +55,7 @@ import java.util.regex.Pattern; import org.apache.commons.logging.Log; +import org.springframework.web.util.HtmlUtils; /** * Contains all methods to synchronize the VFS with the "real" FS.

@@ -151,7 +152,7 @@ public CmsSynchronize(CmsObject cms, CmsSynchronizeSettings settings, I_CmsRepor while (i.hasNext()) { // iterate all source folders String sourcePathInVfs = i.next(); - String destPath = m_destinationPathInRfs + sourcePathInVfs.replace('/', File.separatorChar); + String destPath = HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(String.valueOf(m_destinationPathInRfs))) + sourcePathInVfs.replace('/', File.separatorChar); report.println( org.opencms.workplace.threads.Messages.get().container(