diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-20 23:50:22 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-06-12 12:51:12 +0200 |
commit | 6b3f6c9f9391433783e5c920e38eecf2767b3353 (patch) | |
tree | 0b359348bfbb3d8244a57964c70e8c8552934bd4 | |
parent | 5478ff6dc2ad59a7c7d91f61339e8acee9bbb434 (diff) | |
download | gitlab-ce-6b3f6c9f9391433783e5c920e38eecf2767b3353.tar.gz |
Raise exception on invalid pipeline cache
-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 |