1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Modify file upload error page.

This commit is contained in:
killing
2012-10-31 11:16:59 +08:00
parent 989e32a32c
commit b60b27f022
2 changed files with 3 additions and 3 deletions

View File

@@ -515,9 +515,9 @@ def upload_file_error(request, repo_id):
if request.method == 'GET':
repo = get_repo(repo_id)
parent_dir = request.GET.get('p')
filename = request.GET.get('fn')
filename = request.GET.get('fn', '')
err = request.GET.get('err')
if not parent_dir or not filename or not err:
if not parent_dir or not err:
return render_error(request, u'非法链接')
zipped = gen_path_link (parent_dir, repo.name)