summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-13 07:14:03 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-13 07:14:03 +0000
commit729368c9d5a27927ea3ad372799873f1b8e298e4 (patch)
tree600acdaffadaef7eb9611503ac58f6cfc2ecc5ae
parent990f87ffd02260b360b08fca4f28175f987924b5 (diff)
- Fix js error when calling spellchecker on empty textarea
git-svn-id: https://svn.roundcube.net/trunk@5211 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/googiespell.js2
1 files changed, 1 insertions, 1 deletions
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, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
+ return val ? val.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : '';
};
this.createXMLReq = function (text)