mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Fix broken test for htaccess. See #3456
This commit is contained in:
parent
4bf77dd693
commit
4de0d186ff
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ portrule = shortport.http;
|
|||
|
||||
local function make_grep(pattern)
|
||||
return function(s)
|
||||
return string.match(s, pattern)
|
||||
return s:find(pattern)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ local grep_php = make_grep("<%?php");
|
|||
local grep_cgipath = make_grep("CGIPath");
|
||||
|
||||
local function check_htaccess(s)
|
||||
return string.match("<Files") or string.match(s, "RewriteRule")
|
||||
return s:find("<Files") or s:find("RewriteRule")
|
||||
end
|
||||
|
||||
local CONFIGS = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue