From 66f43184f6c25e7dbc07f0599a74bbbf31b7a490 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 19 Jan 2024 21:54:09 +0000 Subject: [PATCH] Strip carriage returns from unpwdb input files --- nselib/unpwdb.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/unpwdb.lua b/nselib/unpwdb.lua index 3452639f4..a2f554c54 100644 --- a/nselib/unpwdb.lua +++ b/nselib/unpwdb.lua @@ -111,8 +111,8 @@ local filltable = function(filename, table) for l in file:lines() do -- Comments takes up a whole line - if not l:match("#!comment:") then - table[#table + 1] = l + if not l:match("^#!comment:") then + table[#table + 1] = l:gsub("[\r\n]+$", "") end end