From 462c93ae4335111595925d95f5bf5b51ba78cb0c Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Tue, 13 Nov 2012 23:12:16 -0700 Subject: [PATCH] Fix crash #574 --- lib/gollum/frontend/views/history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/frontend/views/history.rb b/lib/gollum/frontend/views/history.rb index 90b8a170..9cb8ce97 100644 --- a/lib/gollum/frontend/views/history.rb +++ b/lib/gollum/frontend/views/history.rb @@ -27,7 +27,7 @@ module Precious end def _identicon_code(blob) - sha_bytes = Digest::SHA1.hexdigest(blob + @request.host)[0,20] + sha_bytes = Digest::SHA1.hexdigest(blob + @request.host)[0,20].unpack('C*') # Thanks donpark's IdenticonUtil.java for this. return ((sha_bytes[0] & 0xFF) << 24) | ((sha_bytes[1] & 0xFF) << 16) |