diff --git a/scripts/http-config-backup.nse b/scripts/http-config-backup.nse index 41bfbba32..ea9d36d23 100644 --- a/scripts/http-config-backup.nse +++ b/scripts/http-config-backup.nse @@ -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("