summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/num_data_source.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 12:08:29 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 12:08:29 +0200
commit73f72e428d2b55cc358086d460141a2c3d7d561b (patch)
tree9644e523d76a7f9edb5eeda2266a9910990a6414 /lib/axlsx/drawing/num_data_source.rb
parentc5ddbe7cd9bb15e8b247e6b5a5e359d02dd5b9fe (diff)
downloadcaxlsx-73f72e428d2b55cc358086d460141a2c3d7d561b.tar.gz
caxlsx-73f72e428d2b55cc358086d460141a2c3d7d561b.zip
Use File.read instead of IO.read
If argument starts with a pipe character (`'|'`) and the receiver is the `IO` class, a subprocess is created in the same way as `Kernel#open`, and its output is returned. `Kernel#open` may allow unintentional command injection, which is the reason these `IO` methods are a security risk. Consider to use `File.read` to disable the behavior of subprocess invocation. Close #193 Ref: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Security/IoMethods
Diffstat (limited to 'lib/axlsx/drawing/num_data_source.rb')
0 files changed, 0 insertions, 0 deletions