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.
This commit is contained in:
Thomas Guillem 2020-04-13 23:49:06 +02:00 committed by Max Kellermann
parent f6fe001fa9
commit 3d8067a041
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.21.23 (not yet released)
* storage
- curl: fix corrupt "href" values in the presence of XML entities
* output
- alsa: implement channel mapping for 5.0 and 7.0
* player

View File

@ -402,7 +402,7 @@ private:
break;
case State::HREF:
response.href.assign(s, len);
response.href.append(s, len);
break;
case State::STATUS: