allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 02/02: fixup! [#8333] download snapshot fixes when dirs have unicode chars
Date Fri, 27 Sep 2019 14:52:00 GMT
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 <dave@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:')


Mime
View raw message