summaryrefslogtreecommitdiff
path: root/program/js/googiespell.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/googiespell.js')
-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 c1b04cadd..18ed6a2b2 100644
--- a/program/js/googiespell.js
+++ b/program/js/googiespell.js
@@ -193,7 +193,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) {