Files
codeql/ruby/ql/test/query-tests/security/cwe-502/oj-global-options/Startup.rb
2021-10-15 11:47:28 +02:00

5 lines
169 B
Ruby

require "oj"
# Set the default mode for the Oj library to use the :compat mode, which makes
# Oj.load safe for untrusted data.
Oj.default_options = { :mode => :compat }