mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Starting in Lua 5.1, string.gfind was renamed to string.gmatch. This commit fixes a warning when gfind is used by using gmatch instead.
This commit is contained in:
parent
9fe196bb0b
commit
c4bebb3a01
2 changed files with 8 additions and 8 deletions
|
|
@ -182,7 +182,7 @@ local function find_links(list, base_path, page, host)
|
|||
injectable = {}
|
||||
url_parts = {}
|
||||
|
||||
for w in string.gfind(page, 'href%s*=%s*"%s*[^"]+%s*"') do
|
||||
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)
|
||||
i = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue