From aa216f3a0497529268555aeea0107f9b9a129674 Mon Sep 17 00:00:00 2001 From: tsmartt Date: Thu, 18 Apr 2024 06:43:21 -0700 Subject: [PATCH] Use unsafe_load for admin dashboard when showing papertrail version history (#4418) --- app/views/admin/publishers/_case.html.slim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/admin/publishers/_case.html.slim b/app/views/admin/publishers/_case.html.slim index 8f30304f50..f05c881d90 100644 --- a/app/views/admin/publishers/_case.html.slim +++ b/app/views/admin/publishers/_case.html.slim @@ -1,5 +1,4 @@ - -- if history.object_changes.present? && (changes = YAML.load(history.object_changes)) && changes.keys.any? { |k| ["assignee_id", "status"].include? k } +- if history.object_changes.present? && (changes = YAML.unsafe_load(history.object_changes)) && changes.keys.any? { |k| ["assignee_id", "status"].include? k } .note-header span.mr-2= link_to("Case ##{history.number}", admin_case_path(history.item_id), class:'font-weight-bold text-dark') small.text-muted.mx-2 •