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:
parent
f6fe001fa9
commit
3d8067a041
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.21.23 (not yet released)
|
ver 0.21.23 (not yet released)
|
||||||
|
* storage
|
||||||
|
- curl: fix corrupt "href" values in the presence of XML entities
|
||||||
* output
|
* output
|
||||||
- alsa: implement channel mapping for 5.0 and 7.0
|
- alsa: implement channel mapping for 5.0 and 7.0
|
||||||
* player
|
* player
|
||||||
|
|
|
@ -402,7 +402,7 @@ private:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case State::HREF:
|
case State::HREF:
|
||||||
response.href.assign(s, len);
|
response.href.append(s, len);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case State::STATUS:
|
case State::STATUS:
|
||||||
|
|
Loading…
Reference in New Issue