Permalink
Browse files

Fix sha1

  • Loading branch information...
rosylilly committed Oct 22, 2017
1 parent a1ab6c5 commit 704dbd591d6bad0996a50c1c2901784f8c9cc537
Showing with 2 additions and 2 deletions.
  1. +2 −2 isubata/webapp/ruby/app.rb
@@ -415,8 +415,8 @@ def user
return 400
end
data = file[:tempfile].read(1024)
digest = Digest::SHA1.hexdigest("#{file[:tempfile].size}.#{data}")
data = file[:tempfile].read
digest = Digest::SHA1.hexdigest(data)
avatar_name = digest + ext
path = File.join(icons_dir, avatar_name)

0 comments on commit 704dbd5

Please sign in to comment.