summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-13 07:14:03 +0000
committeralecpl <alec@alec.pl>2011-09-13 07:14:03 +0000
commitde36863ea0f3b341056b181026ae2e5a7c039c1b (patch)
tree7257f43fc480e7b435ac0e4737624a0aff7ee03a
parent1cc9e210f5cb340599062ae9cee15cdc9ebd77a7 (diff)
- Fix js error when calling spellchecker on empty textarea
-rw-r--r--program/js/googiespell.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/googiespell.js b/program/js/googiespell.js
index 6101fd2ea..7f465687c 100644
--- a/program/js/googiespell.js
+++ b/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)