incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [17/31] git commit: [#6235] ticket:366 Fix tarball url calculation for dirs with spaces
Date Mon, 03 Jun 2013 15:32:10 GMT
[#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 <jetmind2@gmail.com>
Authored: Wed May 29 07:12:50 2013 +0000
Committer: Dave Brondsema <dbrondsema@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,


Mime
View raw message