From 6b3f6c9f9391433783e5c920e38eecf2767b3353 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Sat, 20 May 2017 23:50:22 +0200 Subject: [PATCH] Raise exception on invalid pipeline cache --- lib/gitlab/etag_caching/store.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/gitlab/etag_caching/store.rb b/lib/gitlab/etag_caching/store.rb index 0039fc01c8f..17750fe803e 100644 --- a/lib/gitlab/etag_caching/store.rb +++ b/lib/gitlab/etag_caching/store.rb @@ -25,6 +25,8 @@ module Gitlab end def redis_key(key) + raise 'Invalid key' unless Gitlab::EtagCaching::Router.match(key) + "#{REDIS_NAMESPACE}#{key}" end end