]> source.dussan.org Git - redmine.git/commitdiff
Merged r21777 from trunk to 4.2-stable (#37476).
authorGo MAEDA <maeda@farend.jp>
Thu, 25 Aug 2022 13:54:52 +0000 (13:54 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 25 Aug 2022 13:54:52 +0000 (13:54 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21779 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/setting.rb

index 45a12103e4a30a46ad20bd563480aae5b53bd545..f38e54f4c4728cef150c9f0c8f1e93d60d57d4f0 100644 (file)
@@ -105,7 +105,7 @@ class Setting < ActiveRecord::Base
     v = read_attribute(:value)
     # Unserialize serialized settings
     if available_settings[name]['serialized'] && v.is_a?(String)
-      v = YAML.safe_load(v, permitted_classes: [Symbol, ActiveSupport::HashWithIndifferentAccess])
+      v = YAML.safe_load(v, permitted_classes: Rails.configuration.active_record.yaml_column_permitted_classes)
       v = force_utf8_strings(v)
     end
     v = v.to_sym if available_settings[name]['format'] == 'symbol' && !v.blank?