diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-01 02:53:33 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-02 06:34:20 +0800 |
commit | 3b1da9be250560c9a2e4ca69c6fa89e8b36f01e1 (patch) | |
tree | 96ba5c71cce6ab6a15f2e7f61b155f44f27adab0 /lib | |
parent | 52b857f119debb5a03c216c4199eb21a49d815b6 (diff) | |
download | gitlab-ce-17276-breakage-in-displaying-svg-in-the-same-repository.tar.gz |
Fix inline rendering of SVGs from current repo17276-breakage-in-displaying-svg-in-the-same-repository
Changes generated URL to raw instead of blob
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/blob_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/blob_helper.rb b/lib/gitlab/blob_helper.rb index d3e15a79a8b..fc579ad8d2a 100644 --- a/lib/gitlab/blob_helper.rb +++ b/lib/gitlab/blob_helper.rb @@ -45,7 +45,7 @@ module Gitlab end def image? - ['.png', '.jpg', '.jpeg', '.gif'].include?(extname.downcase) + ['.png', '.jpg', '.jpeg', '.gif', '.svg'].include?(extname.downcase) end # Internal: Lookup mime type for extension. |