From: proller Date: Mon, 24 Feb 2014 16:41:04 +0000 (+0400) Subject: Fix null string escape X-Git-Tag: 0.4.10~239 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4be81155eb845c4c5c6710e0472d1c254552053;p=oweals%2Fminetest.git Fix null string escape --- diff --git a/util/master/list.js b/util/master/list.js index 59c12cd9e..251cba0ca 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -23,6 +23,7 @@ function humanTime(seconds) { } function escapeHTML(str) { + if(!str) return str; return str.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); }