diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-21 00:50:22 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-06-12 13:51:12 +0300 |
commit | 6b3f6c9f9391433783e5c920e38eecf2767b3353 (patch) | |
tree | 0b359348bfbb3d8244a57964c70e8c8552934bd4 /lib/gitlab | |
parent | 5478ff6dc2ad59a7c7d91f61339e8acee9bbb434 (diff) |
Raise exception on invalid pipeline cache
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/etag_caching/store.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |