Skip to content

Commit

Permalink
Fixes #36786 - Permit Symbol for YAML.safe_load report parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bastian-src committed Oct 4, 2023
1 parent 300efc3 commit 8ea8c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def self.inherited(child)
# extracts serialized metrics and keep them as a hash_with_indifferent_access
def metrics
return {} if self[:metrics].nil?
YAML.safe_load(read_metrics, permitted_classes: [ActiveSupport::HashWithIndifferentAccess]).with_indifferent_access
YAML.safe_load(read_metrics, permitted_classes: [ActiveSupport::HashWithIndifferentAccess, Symbol]).with_indifferent_access
end

# serialize metrics as YAML
Expand Down

0 comments on commit 8ea8c64

Please sign in to comment.