diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-17 13:08:10 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-17 13:08:10 +0300 |
commit | 016367c640bf10781e6a5cbabe138257b2a8242e (patch) | |
tree | eba32d8b19151d49ac58b45c2aa7c46423ec1116 | |
parent | 24fa458615f4c77eedd8176f905d51a2df87515a (diff) |
No use to sanitize partial blob data
-rw-r--r-- | app/views/projects/blob/_blob.html.haml | 2 |
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? |