[Svn] r5211 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Tue Sep 13 09:14:03 CEST 2011


Author: alec
Date: 2011-09-13 02:14:03 -0500 (Tue, 13 Sep 2011)
New Revision: 5211

Modified:
   trunk/roundcubemail/program/js/googiespell.js
Log:
- Fix js error when calling spellchecker on empty textarea


Modified: trunk/roundcubemail/program/js/googiespell.js
===================================================================
--- trunk/roundcubemail/program/js/googiespell.js	2011-09-12 19:56:12 UTC (rev 5210)
+++ trunk/roundcubemail/program/js/googiespell.js	2011-09-13 07:14:03 UTC (rev 5211)
@@ -211,7 +211,7 @@
 
 this.escapeSpecial = function(val)
 {
-    return val.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
+    return val ? val.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">") : '';
 };
 
 this.createXMLReq = function (text)

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list