mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
fixed bug where onionshare throws 500 on download if you don't supply absolute path
This commit is contained in:
parent
25b55093be
commit
0cd457f47f
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user