From 18924b628bb1061ef2936733030d2757a47eae6d Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 18 Nov 2015 01:05:12 +0000 Subject: [PATCH] Attempt to address Bill Chaney's reported error: truncate white-space from the end of newslink.cfg lines before checking for (and skipping/ignoring) blank lines. --- exec/newslink.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exec/newslink.js b/exec/newslink.js index f7c20b3df5..d17ed75824 100644 --- a/exec/newslink.js +++ b/exec/newslink.js @@ -177,10 +177,9 @@ if(!cfg_file.open("r")) { } while(!cfg_file.eof) { - line = cfg_file.readln(); + line = truncsp(cfg_file.readln()); if(line==null || line[0] == ';' || !line.length || line==undefined) continue; - line = truncsp(line); str=line.split(/\s+/); switch(str[0].toLowerCase()) { case "disabled": -- GitLab