# HG changeset patch # User Matthew Wild # Date 1282738793 -3600 # Node ID 75c73ac9d5a6cb9fa32a8c3562fa9812a80ca694 # Parent 3fca7dd127df1890fc2c54a95e923fe89b858069 util.sha1: Truncate to a single return result when returning the binary form of the hash diff -r 3fca7dd127df -r 75c73ac9d5a6 util/sha1.lua --- a/util/sha1.lua Tue Aug 24 11:16:46 2010 +0100 +++ b/util/sha1.lua Wed Aug 25 13:19:53 2010 +0100 @@ -132,9 +132,9 @@ if hexres then return hex; else - return hex:gsub("..", function (byte) + return (hex:gsub("..", function (byte) return string.char(tonumber(byte, 16)); - end); + end)); end end