Skip to content

Commit 13f8a69

Browse files
committed
Land rapid7#2669, msftidy Ruby payload std{out,err} fix
2 parents 851cf6f + 63d1a78 commit 13f8a69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ def check_lines
425425
next if ln =~ /[[:space:]]*#/
426426

427427
if ln =~ /\$std(?:out|err)/i or ln =~ /[[:space:]]puts/
428+
next if ln =~ /^[\s]*["][^"]+\$std(?:out|err)/
428429
no_stdio = false
429430
error("Writes to stdout", idx)
430431
end

0 commit comments

Comments
 (0)