From 6b220ccb81add936e412b6d1e5b85a3c9a186385 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 21 Oct 2022 16:05:41 -0700 Subject: [PATCH] Fix bug scape ' on title name. --- wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp index 8d3182b7..e56e97b2 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp @@ -37,9 +37,9 @@ var mindmapLocked = ${mindmapLocked}; var mindmapLockedMsg = ''; var userOptions = ${mindmap.properties}; - var accountName = '${principal.fullName}'; + var accountName = '${fn:replace(principal.fullName,'\'','\\\'')}'; var accountEmail = '${principal.email}'; - var mapTitle = '${mindmap.title}'; + var mapTitle = '${fn:replace(mindmap.title,'\'','\\\'')}';