1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-13 18:35:20 +00:00

Fix bug in repo download

This commit is contained in:
plt 2012-05-16 22:44:24 +08:00
parent 29c0ffabc9
commit fd44881285
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ $(function() {
},
success: function() {
req_success = true;
location.href = '/download/repo/?repo_id={{ repo_id }}';
location.href = '{{ SITE_ROOT }}download/repo/?repo_id={{ repo_id }}';
}
});

View File

@ -450,7 +450,7 @@ def repo_download(request):
repo = seafserv_threaded_rpc.get_repo(repo_id)
repo_name = repo.props.name
quote_repo_name = quote(repo_name)
quote_repo_name = quote(repo_name.encode('utf-8'))
encrypted = repo.props.encrypted
if encrypted:
enc = '1'