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:
commit
c09defec56
@ -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('/'))
|
||||
|
Loading…
Reference in New Issue
Block a user