Revision: 8946
http://languagetool.svn.sourceforge.net/languagetool/?rev=8946&view=rev
Author: dnaber
Date: 2013-01-10 23:07:25 +0000 (Thu, 10 Jan 2013)
Log Message:
-----------
online check: another escaping fix
Modified Paths:
--------------
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
Modified:
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
===================================================================
---
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
2013-01-10 22:53:07 UTC (rev 8945)
+++
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
2013-01-10 23:07:25 UTC (rev 8946)
@@ -160,7 +160,8 @@
if (suggestion.moreinfo) {
metaInfo += delim + suggestion.moreinfo;
}
- metaInfo = metaInfo.replace(/&/g, "&").replace(/</g,
"<").replace(/>/g, ">"); // escape HTML
+ metaInfo = metaInfo.replace(/&/g, "&").replace(/"/g,
""").replace(/'/g, "'")
+ .replace(/</g, "<").replace(/>/g, ">"); // escape
HTML
newText = newText.substring(0, spanStart)
+ '<span ' + this.surrogateAttribute + '="' + metaInfo +
'" class="' + cssName + '">'
+ newText.substring(spanStart, spanEnd)
Modified:
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
===================================================================
--- trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
2013-01-10 22:53:07 UTC (rev 8945)
+++ trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
2013-01-10 23:07:25 UTC (rev 8946)
@@ -160,7 +160,8 @@
if (suggestion.moreinfo) {
metaInfo += delim + suggestion.moreinfo;
}
- metaInfo = metaInfo.replace(/&/g, "&").replace(/</g,
"<").replace(/>/g, ">"); // escape HTML
+ metaInfo = metaInfo.replace(/&/g, "&").replace(/"/g,
""").replace(/'/g, "'")
+ .replace(/</g, "<").replace(/>/g, ">"); // escape
HTML
newText = newText.substring(0, spanStart)
+ '<span ' + this.surrogateAttribute + '="' + metaInfo +
'" class="' + cssName + '">'
+ newText.substring(spanStart, spanEnd)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits