storage/plugins/CurlStorage: URL-encode paths in CurlStorage::MapUTF8

When using a database that was not created with a WebDAV music_directory
(i.e., if using a remote database, on which updates happen locally) and
using the Curl storage plugin, MPD would previously send GET requests that
had unescaped spaces in them.  This change uses Curl's URL-encode API to
solve this.
This commit is contained in:
Joshua Wise
2018-08-17 14:41:29 -04:00
committed by Max Kellermann
parent 147872fe97
commit 29f78b18b1
2 changed files with 14 additions and 2 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.20.22 (not yet released)
* storage
- curl: URL-encode paths
ver 0.20.21 (2018/08/17)
* database