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:

committed by
Max Kellermann

parent
f6fe001fa9
commit
3d8067a041
@@ -402,7 +402,7 @@ private:
|
||||
break;
|
||||
|
||||
case State::HREF:
|
||||
response.href.assign(s, len);
|
||||
response.href.append(s, len);
|
||||
break;
|
||||
|
||||
case State::STATUS:
|
||||
|
Reference in New Issue
Block a user