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
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-17 13:08:10 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-17 13:08:10 +0300
commit016367c640bf10781e6a5cbabe138257b2a8242e (patch)
treeeba32d8b19151d49ac58b45c2aa7c46423ec1116
parent24fa458615f4c77eedd8176f905d51a2df87515a (diff)
No use to sanitize partial blob data
-rw-r--r--app/views/projects/blob/_blob.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml
index 2c5b8dc4356..f3bfe0a18b0 100644
--- a/app/views/projects/blob/_blob.html.haml
+++ b/app/views/projects/blob/_blob.html.haml
@@ -36,7 +36,7 @@
= render "download", blob: blob
- elsif blob.text?
- if blob_svg?(blob)
- = render "image", blob: sanitize_svg(blob)
+ = render "image", blob: blob
- else
= render "text", blob: blob
- elsif blob.image?