Skip to content

Commit d4be811

Browse files
committedFeb 24, 2014
Fix null string escape
1 parent f6232d7 commit d4be811

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎util/master/list.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function humanTime(seconds) {
2323
}
2424

2525
function escapeHTML(str) {
26+
if(!str) return str;
2627
return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
2728
}
2829

0 commit comments

Comments
 (0)
Please sign in to comment.