Skip to content

Commit

Permalink
Adding os.path.basename to filename in keygen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smári McCarthy committed Jan 8, 2014
1 parent 14b2a3e commit a691fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailpile/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def genkey(self, filename, magic):
Nice utility, Bob!
"""
h = sha512()
h.update(":%s:%s:" % (filename, magic))
h.update(":%s:%s:" % (os.path.basename(filename), magic))
return h.hexdigest()


Expand Down

0 comments on commit a691fc7

Please sign in to comment.