Skip to content

Commit f46b4ab

Browse files
author
Tod Beardsley
committed
Land rapid7#3258, undoing the aggressive vars_post check
2 parents 66cc050 + f3f3100 commit f46b4ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/msftidy.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,11 @@ def check_vuln_codes
484484
end
485485
end
486486

487-
def check_request_vars
487+
def check_vars_get
488488
test = @source.scan(/send_request_(?:cgi|raw)\s*\(\s*\{\s*['"]uri['"]\s*=>\s*[^=\}]*?\?[^,\}]+/im)
489489
unless test.empty?
490490
test.each { |item|
491-
warn("Please use vars_get or vars_post in send_request_cgi and send_request_raw: #{item}")
491+
warn("Please use vars_get in send_request_cgi and send_request_raw: #{item}")
492492
}
493493
end
494494
end
@@ -536,7 +536,7 @@ def run_checks(full_filepath)
536536
tidy.check_snake_case_filename
537537
tidy.check_comment_splat
538538
tidy.check_vuln_codes
539-
tidy.check_request_vars
539+
tidy.check_vars_get
540540
return tidy
541541
end
542542

0 commit comments

Comments
 (0)