1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 08:41:34 +00:00

Add clarifying parentheses to complex boolean statements as needed.

This commit is contained in:
dmiller
2019-04-13 21:42:56 +00:00
parent 0855eb4c0c
commit 8d7a2bc004
6 changed files with 13 additions and 7 deletions

View File

@@ -300,8 +300,8 @@ tools = { Django = { rapidDetect = function(host, port)
end,
consumingDetect = function(page, path)
if page and string.find(page, "content=[\"']MediaWiki") or
string.find(page, "/mediawiki/") then
if page and (string.find(page, "content=[\"']MediaWiki") or
string.find(page, "/mediawiki/")) then
return "MediaWiki detected. Found common traces on " .. page
end
end