1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 07:10:55 +00:00

Merge pull request #873 from haiwen/dl-zipped

use "real_path" when download sub-folder in shared dir
This commit is contained in:
xiez 2015-10-29 17:45:18 +08:00
commit c09defec56

View File

@ -370,7 +370,7 @@ def _download_dir_from_share_link(request, fileshare, repo, real_path):
request, _(u'Unable to access file: share link traffic is used up.'))
shared_by = fileshare.username
if fileshare.path == '/':
if real_path == '/':
dirname = repo.name
else:
dirname = os.path.basename(real_path.rstrip('/'))