Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-07-31 21:53:33 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-08-02 01:34:20 +0300
commit3b1da9be250560c9a2e4ca69c6fa89e8b36f01e1 (patch)
tree96ba5c71cce6ab6a15f2e7f61b155f44f27adab0 /lib
parent52b857f119debb5a03c216c4199eb21a49d815b6 (diff)
Fix inline rendering of SVGs from current repo
Changes generated URL to raw instead of blob
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/blob_helper.rb2
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.