Skip to content

Commit 56b165d

Browse files
committed
Land rapid7#3263, updated vars_get msftidy regex by @wvu-r7
2 parents f46b4ab + aeedad2 commit 56b165d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def check_vuln_codes
485485
end
486486

487487
def check_vars_get
488-
test = @source.scan(/send_request_(?:cgi|raw)\s*\(\s*\{\s*['"]uri['"]\s*=>\s*[^=\}]*?\?[^,\}]+/im)
488+
test = @source.scan(/send_request_(?:cgi|raw)\s*\(\s*\{?\s*['"]uri['"]\s*=>\s*[^=})]*?\?[^,})]+/im)
489489
unless test.empty?
490490
test.each { |item|
491491
warn("Please use vars_get in send_request_cgi and send_request_raw: #{item}")

0 commit comments

Comments
 (0)