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:
Cody Cutrer 2015-05-28 17:56:22 -06:00
parent 66fa28fa47
commit d9eec93d71
1 changed files with 1 additions and 0 deletions

View File

@ -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