mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
add a test for explicit shell invocations using Kernel.open
This commit is contained in:
@@ -17,5 +17,7 @@ class UsersController < ActionController::Base
|
||||
Kernel.open("this is #{fine}") # GOOD
|
||||
|
||||
Kernel.open("#{this_is} bad") # BAD
|
||||
|
||||
open("| #{this_is_an_explicit_command} foo bar") # GOOD
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user