1
0
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:
batrick
2011-05-11 15:12:47 +00:00
parent 4444071f03
commit 321e0d34e0
13 changed files with 31 additions and 31 deletions

View File

@@ -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