changeset 4396:d53527e1264e

GUI editor: fix inserting smileys that contain a backslash or single-quote
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 29 Oct 2008 04:58:12 +0100
parents 17ede26a8237
children 64d9d0f74a6a
files wiki/htdocs/applets/moinFCKplugins/smiley/fck_smiley.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/applets/moinFCKplugins/smiley/fck_smiley.html	Wed Oct 29 03:43:40 2008 +0100
+++ b/wiki/htdocs/applets/moinFCKplugins/smiley/fck_smiley.html	Wed Oct 29 04:58:12 2008 +0100
@@ -97,7 +97,7 @@
 		if (aImages[i])
 		{
 			var sUrl = sBasePath + aImages[i] ;
-			document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\', \'' + FCKConfig.SmileyMap[aImages[i]] + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;
+			document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\', \'' + FCKConfig.SmileyMap[aImages[i]].replace(/'/g, "\\'" ).replace(/\\/g, "\\\\") + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;
 			document.write( '<img src="' + sUrl + '" border="0" />' ) ;
 		}
 		else