fixed bug where onionshare throws 500 on download if you don't supply absolute path

This commit is contained in:
Micah Lee 2014-05-28 15:29:21 -04:00
parent 25b55093be
commit 0cd457f47f

View File

@ -87,6 +87,8 @@ def main():
filename = sys.argv[1]
if not os.path.isfile(filename):
sys.exit(strings["not_a_file"].format(filename))
else:
filename = os.path.abspath(filename)
# calculate filehash, file size
print strings["calculating_sha1"]