You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/09/27 14:52:00 UTC
[allura] 02/02: fixup! [#8333] download snapshot fixes when dirs
have unicode chars
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8333
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 6e33cadc5395e05fda47871ba057e99d9640f5dd
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Sep 27 10:51:43 2019 -0400
fixup! [#8333] download snapshot fixes when dirs have unicode chars
---
Allura/allura/controllers/repository.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index 6a72149..e9ce78f 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -716,7 +716,7 @@ class CommitBrowser(BaseController):
status = c.app.repo.get_tarball_status(rev, path)
if not status and request.method == 'POST':
allura.tasks.repo_tasks.tarball.post(rev, path)
- redirect('tarball' + u'?path={0}'.format(path) if path else '')
+ redirect(('tarball' + u'?path={0}'.format(path) if path else '').encode('utf-8'))
return dict(commit=self._commit, revision=rev, status=status)
@expose('json:')