whitelist complex timestamp yamls
Change-Id: I482fe53396b150f896b578bd9a8eb89b3adc703f Reviewed-on: https://gerrit.instructure.com/55327 Tested-by: Jenkins Reviewed-by: Rob Orton <rob@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
66fa28fa47
commit
d9eec93d71
|
@ -158,6 +158,7 @@ module CanvasRails
|
|||
# See the tests in spec/lib/safe_yaml_spec.rb
|
||||
YAML.whitelist.add(*%w[
|
||||
tag:ruby.yaml.org,2002:symbol
|
||||
tag:yaml.org,2002:timestamp
|
||||
tag:yaml.org,2002:map:HashWithIndifferentAccess
|
||||
tag:yaml.org,2002:map:ActiveSupport::HashWithIndifferentAccess
|
||||
tag:ruby.yaml.org,2002:object:OpenStruct
|
||||
|
|
Loading…
Reference in New Issue