summaryrefslogtreecommitdiffstats
path: root/app/views/blobs
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2009-06-11 13:32:48 +0200
committerJohan Sørensen <johan@johansorensen.com>2009-06-11 13:41:27 +0200
commit193d8d984c07bd45d24be1d6c67ed200aa11faa8 (patch)
treece6a7ee3a66189af8fa5625ed14b2265e0889d73 /app/views/blobs
parent16345634b67935851453b0d87332a003a24c1c75 (diff)
downloadgitorious-mainline-outdated-193d8d984c07bd45d24be1d6c67ed200aa11faa8.zip
gitorious-mainline-outdated-193d8d984c07bd45d24be1d6c67ed200aa11faa8.tar.gz
gitorious-mainline-outdated-193d8d984c07bd45d24be1d6c67ed200aa11faa8.tar.bz2
Better binary blob detection
Just check the first 1024 bytes if there's any null bytes, instead of using the error prone mime-type detection, which gives us a smaller chance of false-positives with the null byte detection
Diffstat (limited to 'app/views/blobs')
-rw-r--r--app/views/blobs/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/blobs/show.html.erb b/app/views/blobs/show.html.erb
index d82676a..4042b53 100644
--- a/app/views/blobs/show.html.erb
+++ b/app/views/blobs/show.html.erb
@@ -65,7 +65,7 @@
<% end -%>
<% else -%>
<p>
- <%= t("views.blobs.message").call(self, @blob.mime_type, raw_blob_path(@commit.id, current_path)) %>
+ <%= t("views.blobs.message").call(self, raw_blob_path(@commit.id, current_path)) %>
</p>
<% end -%>