Browse code

* S3/S3.py: Escape parameters in strings. Fixes sync to and ls of directories with spaces. (Thx Lubomir Rintel from Fedora Project)

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/0.9.8.x@245 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2008/11/05 13:04:06
Showing 2 changed files
... ...
@@ -1,5 +1,10 @@
1 1
 2008-11-05  Michal Ludvig  <michal@logix.cz>
2 2
 
3
+	* S3/S3.py: Escape parameters in strings. Fixes sync to and 
4
+	  ls of directories with spaces. (Thx Lubomir Rintel from Fedora Project)
5
+
6
+2008-11-05  Michal Ludvig  <michal@logix.cz>
7
+
3 8
 	* s3cmd: Unicode brainfuck again. This time force all output
4 9
 	  in UTF-8, will see how many complaints we'll get...
5 10
 
... ...
@@ -110,6 +110,7 @@ class S3(object):
110 110
 		def _get_contents(data):
111 111
 			return getListFromXml(data, "Contents")
112 112
 
113
+		prefix = self.urlencode_string(prefix)
113 114
 		request = self.create_request("BUCKET_LIST", bucket = bucket, prefix = prefix)
114 115
 		response = self.send_request(request)
115 116
 		#debug(response)