mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 14:49:09 +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:
@@ -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('/'))
|
||||
|
Reference in New Issue
Block a user