mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
use # length operator instead of string.len (canonicalize)
Used this perl command: $ # perl -pi -e 's/string\.len\((.*?)\)/#\1/g' *.nse
This commit is contained in:
@@ -177,7 +177,7 @@ local function find_links(list, base_path, page, host)
|
||||
|
||||
for w in string.gmatch(page, 'href%s*=%s*"%s*[^"]+%s*"') do
|
||||
s, e = string.find(w, '"')
|
||||
httpurl = string.sub(w, s+1, string.len(w)-1)
|
||||
httpurl = string.sub(w, s+1, #w-1)
|
||||
i = 1
|
||||
|
||||
-- parse out duplicates, otherwise we'll be here all day
|
||||
|
||||
Reference in New Issue
Block a user