You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/06/03 17:32:10 UTC

[17/31] git commit: [#6235] ticket:366 Fix tarball url calculation for dirs with spaces

[#6235] ticket:366 Fix tarball url calculation for dirs with spaces


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/30ff42e7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/30ff42e7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/30ff42e7

Branch: refs/heads/cj/merge-request-4
Commit: 30ff42e72b7a6bfa6d1aa331ae1833c3c62a4a24
Parents: 85fbe7d
Author: Igor Bondarenko <je...@gmail.com>
Authored: Wed May 29 07:12:50 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri May 31 22:14:09 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/repository.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/30ff42e7/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index a8f8c68..e4832aa 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -522,7 +522,7 @@ class TreeBrowser(BaseController, DispatchIndex):
             cutout = len('tree' + self._path)
             if request.path.endswith('/') and not self._path.endswith('/'):
                 cutout += 1
-            tarball_url = '%starball' % request.path[:-cutout]
+            tarball_url = quote('%starball' % unquote(request.path)[:-cutout])
         return dict(
             repo=c.app.repo,
             commit=self._commit,