Skip to content

Commit e23e65e

Browse files
committed
Fix msftidy's vars_get check for omitted parens
Hat tip @bcoles.
1 parent 2366068 commit e23e65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/dev/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def check_vuln_codes
618618
end
619619

620620
def check_vars_get
621-
test = @source.scan(/send_request_cgi\s*\(\s*\{?\s*['"]uri['"]\s*=>\s*[^=})]*?\?[^,})]+/im)
621+
test = @source.scan(/send_request_cgi\s*\(?\s*\{?\s*['"]uri['"]\s*=>\s*[^=})]*?\?[^,})]+/im)
622622
unless test.empty?
623623
test.each { |item|
624624
info("Please use vars_get in send_request_cgi: #{item}")

0 commit comments

Comments
 (0)