Fix bug scape ' on title name.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-21 16:05:41 -07:00
parent 4d8c2aa6cb
commit 6b220ccb81

View File

@ -37,9 +37,9 @@
var mindmapLocked = ${mindmapLocked};
var mindmapLockedMsg = '<spring:message code="MINDMAP_LOCKED" arguments="${lockInfo.user.fullName},${lockInfo.user.email}"/>';
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,'\'','\\\'')}';
</script>
</head>