Permalink
Browse files

Fix crash #574

  • Loading branch information...
1 parent bda3b7b commit 462c93ae4335111595925d95f5bf5b51ba78cb0c @bootstraponline bootstraponline committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gollum/frontend/views/history.rb
@@ -27,7 +27,7 @@ def versions
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) |

0 comments on commit 462c93a

Please sign in to comment.