Allow to serialize TimeZone classes
This commit is contained in:
parent
e8c4e7a7c4
commit
ba8f7e5cf3
1 changed files with 1 additions and 1 deletions
|
|
@ -36,6 +36,6 @@ module Osem
|
||||||
# This is a nightmare with our current data model, no one ever thought about this.
|
# This is a nightmare with our current data model, no one ever thought about this.
|
||||||
config.active_record.belongs_to_required_by_default = false
|
config.active_record.belongs_to_required_by_default = false
|
||||||
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
|
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
|
||||||
config.active_record.yaml_column_permitted_classes = ['Date', 'DateTime', 'Symbol', 'Time']
|
config.active_record.yaml_column_permitted_classes = ['Date', 'DateTime', 'Symbol', 'Time', 'ActiveSupport::TimeWithZone', 'ActiveSupport::TimeZone']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue