summaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorThomas Guillem <thomas@gllm.fr>2020-04-13 23:49:06 +0200
committerMax Kellermann <max@musicpd.org>2020-04-15 13:18:16 +0200
commit3d8067a041fae2c117772a498702b9f40fe24595 (patch)
tree2358c8dda99e7fcacdfdaf1c0ce06842efeadee6 /src/storage
parentf6fe001fa99a2d1c1c5e22d3313ae98a188662b7 (diff)
storage/curl: fix href when file has a '&' char
If the file name is "Hello & bye", 3 CharacterData events will be sent with the State::HREF state: - "Hello%20" - "&" - "%20bye" Reproduced with files hosted on an apache2 DAV server: 2.4.38-3+deb10u3.
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/plugins/CurlStorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx
index e2bc99bdf..9452f7e54 100644
--- a/src/storage/plugins/CurlStorage.cxx
+++ b/src/storage/plugins/CurlStorage.cxx
@@ -402,7 +402,7 @@ private:
break;
case State::HREF:
- response.href.assign(s, len);
+ response.href.append(s, len);
break;
case State::STATUS: