projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6232d7
)
Fix null string escape
author
proller
<proller@github.com>
Mon, 24 Feb 2014 16:41:04 +0000
(20:41 +0400)
committer
proller
<proller@github.com>
Mon, 24 Feb 2014 16:41:04 +0000
(20:41 +0400)
util/master/list.js
patch
|
blob
|
history
diff --git
a/util/master/list.js
b/util/master/list.js
index 59c12cd9e39f4f8c77046c004d40fc0658b3f615..251cba0ca6f93c250450f932690617f7c8b45af4 100644
(file)
--- 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, '"');
}