summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-28 22:00:24 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-28 22:00:32 +0000
commit36c8a31d573bdd2edd4c87be63eb8dde20a79761 (patch)
tree066a4e64b1efb9c9dabbf3c2e097d32a82656ef8 /lib
parentcc201d1e1be2c8f4de2e2265c2b83bd925f8a260 (diff)
downloadgitlab-ce-36c8a31d573bdd2edd4c87be63eb8dde20a79761.tar.gz
Add latest changes from gitlab-org/security/gitlab@15-4-stable-ee
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/json_cache.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/json_cache.rb b/lib/gitlab/json_cache.rb
index d5c018cfc68..d2916a01809 100644
--- a/lib/gitlab/json_cache.rb
+++ b/lib/gitlab/json_cache.rb
@@ -43,9 +43,7 @@ module Gitlab
end
def write(key, value, options = nil)
- # As we use json as the serialization format, return everything from
- # ActiveModel objects included encrypted values.
- backend.write(cache_key(key), value.to_json(unsafe_serialization_hash: true), options)
+ backend.write(cache_key(key), value.to_json, options)
end
def fetch(key, options = {}, &block)