From aef3721d555075353b06ae050d2b52faa0a93e88 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 1 Oct 2007 17:09:12 +0000 Subject: [PATCH] Bugfix: Don't unescape paths. Archive supports 'file:' URLs as well as normal file paths. If a path starts with '/', assume it is a local path and don't unescape % sequences (e.g. don't convert %20 to space). git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/Archive@5125 66de3db3-b00d-0410-b41b-f4738ad19bea --- AppRun | 3 ++- Archive.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AppRun b/AppRun index 365e97e..d2dc878 100755 --- a/AppRun +++ b/AppRun @@ -18,7 +18,8 @@ from box import ArchiveBox path = sys.argv[1] if path != '-': - path = rox.get_local_path(path) + if not path.startswith('/'): + path = rox.get_local_path(path) if not path: rox.croak(_('Sorry, I can only extract/archive local files.')) path = os.path.abspath(path) diff --git a/Archive.xml b/Archive.xml index 62ecd69..ca624b9 100644 --- a/Archive.xml +++ b/Archive.xml @@ -17,6 +17,6 @@ file or directory structure. - + -- 2.11.4.GIT