From f593222ef5d5dc3b678618593abb873f4fcd4343 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 13 Sep 2011 04:09:50 -0400 Subject: [PATCH] - Applied fixes from trunk up to r5212 --- program/js/googiespell.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/googiespell.js b/program/js/googiespell.js index c1b04ca..18ed6a2 100644 --- a/program/js/googiespell.js +++ b/program/js/googiespell.js @@ -193,7 +193,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) { -- Gitblit v1.9.1