mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-13 20:56:16 +00:00
Add repo->magic to repo download link.
This commit is contained in:
parent
7b0afd2739
commit
05e86826ef
4
views.py
4
views.py
@ -1750,7 +1750,9 @@ def get_repo_download_url(request, repo_id):
|
|||||||
|
|
||||||
url += "?relay_id=%s&relay_addr=%s&relay_port=%s" % (relay_id, addr, port)
|
url += "?relay_id=%s&relay_addr=%s&relay_port=%s" % (relay_id, addr, port)
|
||||||
url += "&email=%s&token=%s" % (email, token)
|
url += "&email=%s&token=%s" % (email, token)
|
||||||
url += "&repo_id=%s&repo_name=%s&encrypted=%s" % (repo_id, quote_repo_name, enc)
|
url += "&repo_id=%s&repo_name=%s" % (repo_id, quote_repo_name)
|
||||||
|
if enc:
|
||||||
|
url += "&encrypted=1&magic=%s" % repo.magic
|
||||||
|
|
||||||
return url, ''
|
return url, ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user