From d4be81155eb845c4c5c6710e0472d1c254552053 Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 24 Feb 2014 20:41:04 +0400 Subject: [PATCH] Fix null string escape --- util/master/list.js | 1 + 1 file changed, 1 insertion(+) 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, '"'); } -- 2.25.1