mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:40:36 +08:00
Fix broken test for htaccess. See #3456
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user