Files
codeql/ruby/ql/test/query-tests/security/cwe-502/ox-global-options/Startup.rb
2023-10-19 14:04:48 +02:00

5 lines
171 B
Ruby

require "ox"
# Set the default mode for the Ox library to use the :object mode, which makes
# Ox.load unsafe for untrusted data.
Ox.default_options = { :mode => :object }