diff options
| author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-02-07 11:18:51 +0100 |
|---|---|---|
| committer | Stefan Majewsky <stefan.majewsky@sap.com> | 2022-02-07 11:18:51 +0100 |
| commit | 9e4ca6d1af64e72f60dc40d587f16c1b203357b4 (patch) | |
| tree | a8297deca73f723e6921dc5bdde8ebcb66f24c1e /util/render_template.go | |
| parent | 79df56a219c657d51327ca95a1696cd329629665 (diff) | |
| download | go-schwift-9e4ca6d1af64e72f60dc40d587f16c1b203357b4.tar.gz | |
do not mangle non-standard object paths
If the object path contains multiple slashes back-to-back, these used to
be wrongly merged by net.url.URL.String(). For example,
account = "AUTH_aaa"
container = "ccc"
object = "foo///bar"
would become something like
https://swift.example.com/v1/AUTH_aaa/ccc/foo/bar
With this change, we produce a more correct URL:
https://swift.example.com/v1/AUTH_aaa/ccc/foo%2f%2f%2fbar
Diffstat (limited to 'util/render_template.go')
0 files changed, 0 insertions, 0 deletions
