From 729368c9d5a27927ea3ad372799873f1b8e298e4 Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 13 Sep 2011 07:14:03 +0000 Subject: - Fix js error when calling spellchecker on empty textarea git-svn-id: https://svn.roundcube.net/trunk@5211 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/googiespell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcubemail/program/js/googiespell.js b/roundcubemail/program/js/googiespell.js index 6101fd2ea..7f465687c 100644 --- a/roundcubemail/program/js/googiespell.js +++ b/roundcubemail/program/js/googiespell.js @@ -211,7 +211,7 @@ this.getUrl = function() this.escapeSpecial = function(val) { - return val.replace(/&/g, "&").replace(//g, ">"); + return val ? val.replace(/&/g, "&").replace(//g, ">") : ''; }; this.createXMLReq = function (text) -- cgit v1.2.3