1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +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:
bmenrigh
2008-12-17 20:43:57 +00:00
parent 9fe196bb0b
commit c4bebb3a01
2 changed files with 8 additions and 8 deletions

View File

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