summaryrefslogtreecommitdiff
path: root/lib/gitlab/json_cache.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-06-20 18:00:44 +1000
committerAsh McKenzie <amckenzie@gitlab.com>2019-06-20 18:00:44 +1000
commit03220c00d9cf3bc4ab05ef1ea16948ce47df3834 (patch)
tree85a27c6598df57796f62c9f70a9e23764e668d12 /lib/gitlab/json_cache.rb
parentadeccba13676b831335e2f12f779f77602298b31 (diff)
downloadgitlab-ce-03220c00d9cf3bc4ab05ef1ea16948ce47df3834.tar.gz
Gitlab::JsonCache#parse_value ensure string63510-error-parsing-true-boolean-in-gitlab-jsoncache
Diffstat (limited to 'lib/gitlab/json_cache.rb')
-rw-r--r--lib/gitlab/json_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/json_cache.rb b/lib/gitlab/json_cache.rb
index e4bc437d787..9a0b2b35112 100644
--- a/lib/gitlab/json_cache.rb
+++ b/lib/gitlab/json_cache.rb
@@ -58,7 +58,7 @@ module Gitlab
private
def parse_value(raw, klass)
- value = ActiveSupport::JSON.decode(raw)
+ value = ActiveSupport::JSON.decode(raw.to_s)
case value
when Hash then parse_entry(value, klass)