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(