diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-28 10:35:04 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-28 10:35:04 +0000 |
commit | 3686f100b7e46d60758e4a1cc70586444ddb5f7a (patch) | |
tree | 7c1869c4092cdd922a10ec291b94796f9affd1e1 /src/api/s3_list.rs | |
parent | 0957d0fdfadb27e49c24d63994f52197a9c9cd1c (diff) | |
download | garage-3686f100b7e46d60758e4a1cc70586444ddb5f7a.tar.gz garage-3686f100b7e46d60758e4a1cc70586444ddb5f7a.zip |
Compatibility fixes
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r-- | src/api/s3_list.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs index 88f76771..ffde609f 100644 --- a/src/api/s3_list.rs +++ b/src/api/s3_list.rs @@ -103,7 +103,8 @@ pub async fn handle_list( writeln!( &mut xml, "\t\t<Key>{}</Key>", - xml_encode_key(key, urlencode_resp) + xml_escape(key), + //xml_encode_key(key, urlencode_resp) // doesn't work with nextcloud, wtf ) .unwrap(); writeln!(&mut xml, "\t\t<LastModified>{}</LastModified>", last_modif).unwrap(); @@ -117,7 +118,8 @@ pub async fn handle_list( writeln!( &mut xml, "\t<Prefix>{}</Prefix>", - xml_encode_key(pfx, urlencode_resp) + xml_escape(pfx), + //xml_encode_key(pfx, urlencode_resp) ) .unwrap(); } |