diff options
author | proller <proller@github.com> | 2014-02-24 20:41:04 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2014-02-24 20:41:04 +0400 |
commit | d4be81155eb845c4c5c6710e0472d1c254552053 (patch) | |
tree | a0dd630b57ef10e2fa3d02cca7bb7140964430fa /util | |
parent | f6232d71b64da651b2f6b08461b151fcbff05fd5 (diff) | |
download | minetest-d4be81155eb845c4c5c6710e0472d1c254552053.tar.gz minetest-d4be81155eb845c4c5c6710e0472d1c254552053.tar.bz2 minetest-d4be81155eb845c4c5c6710e0472d1c254552053.zip |
Fix null string escape
Diffstat (limited to 'util')
-rw-r--r-- | util/master/list.js | 1 |
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, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); } |