Nmap Development mailing list archives
Re: [nmap-svn] r18544 - nmap/nselib
From: David Fifield <david () bamsoftware com>
Date: Fri, 2 Jul 2010 08:22:19 -0600
On Fri, Jul 02, 2010 at 04:35:18AM -0700, commit-mailer () insecure org wrote:
Author: jah
Date: Fri Jul 2 04:35:18 2010
New Revision: 18544
Log:
Strip newlines from the the portion of the http status line starting after a
space.
Modified:
nmap/nselib/http.lua
Modified: nmap/nselib/http.lua
==============================================================================
--- nmap/nselib/http.lua (original)
+++ nmap/nselib/http.lua Fri Jul 2 04:35:18 2010
@@ -1348,7 +1348,7 @@
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
What's the reason for this? What scripts and libraries does it affect? David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [nmap-svn] r18544 - nmap/nselib David Fifield (Jul 02)
- Re: [nmap-svn] r18544 - nmap/nselib jah (Jul 02)
- Re: [nmap-svn] r18544 - nmap/nselib David Fifield (Jul 04)
- Re: [nmap-svn] r18544 - nmap/nselib jah (Jul 02)
