Nmap Development mailing list archives
[NSE] fix url.parse in http.lua
From: jah <jah () zadkiel plus com>
Date: Wed, 20 Aug 2008 02:15:30 +0100
Hello, I'm getting: SCRIPT ENGINE: C:\Program Files\Nmap\nselib/http.lua:77: attempt to call field 'parse' (a nil value) caused by an overwrite of the url library table by the url paramater in http.get_url(). Patch attached. Regards, jah
--- http.lua.orig 2008-08-18 22:40:22.062500000 +0100
+++ http.lua 2008-08-20 02:07:10.384000000 +0100
@@ -73,8 +73,8 @@
-- @param url The url of the host.
-- @param options Options passed to http.get.
-- @see http.get
-get_url = function(url, options )
- local parsed = url.parse( url )
+get_url = function( u, options )
+ local parsed = url.parse( u )
local port = {}
port.service = parsed.scheme
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [NSE] fix url.parse in http.lua jah (Aug 19)
- Re: [NSE] fix url.parse in http.lua Fyodor (Sep 02)
