aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorproller <proller@github.com>2014-02-24 20:41:04 +0400
committerproller <proller@github.com>2014-02-24 20:41:04 +0400
commitd4be81155eb845c4c5c6710e0472d1c254552053 (patch)
treea0dd630b57ef10e2fa3d02cca7bb7140964430fa /util
parentf6232d71b64da651b2f6b08461b151fcbff05fd5 (diff)
downloadminetest-d4be81155eb845c4c5c6710e0472d1c254552053.tar.gz
minetest-d4be81155eb845c4c5c6710e0472d1c254552053.tar.bz2
minetest-d4be81155eb845c4c5c6710e0472d1c254552053.zip
Fix null string escape
Diffstat (limited to 'util')
-rw-r--r--util/master/list.js1
1 files changed, 1 insertions, 0 deletions
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, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
}