diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-05 08:55:25 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-11 10:29:14 +0100 |
commit | 01a406f5b02a7c8f5133012931b56696c3d21fe8 (patch) | |
tree | d9fdfd75524eababcd600ffb60d6bd514f2c9458 /app | |
parent | a2f61368f9d62cded366a3b8813969f66c4be4dd (diff) | |
download | gitlab-ce-01a406f5b02a7c8f5133012931b56696c3d21fe8.tar.gz |
Render 404 if there is no project for old CI status badge
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/ci/projects_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb index 7838994433e..d1824b481d7 100644 --- a/app/controllers/ci/projects_controller.rb +++ b/app/controllers/ci/projects_controller.rb @@ -17,6 +17,7 @@ module Ci # with projects migrated from GitLab CI. # def badge + return render_404 unless @project image = Ci::ImageForBuildService.new.execute(@project, params) send_file image.path, filename: image.name, disposition: 'inline', type:"image/svg+xml" end |