From e651aced8c6c309d7691abfd63779fff0280964c Mon Sep 17 00:00:00 2001 From: jah Date: Fri, 2 Jul 2010 11:35:18 +0000 Subject: [PATCH] Strip newlines from the the portion of the http status line starting after a space. --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 17ffb90de..69e59b855 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -1348,7 +1348,7 @@ function get_status_string(data) if(space == nil) then return data['status-line'] else - return string.sub(data['status-line'], space + 1) + return (string.sub(data['status-line'], space + 1)):gsub('\r?\n', '') end end