util/UriUtil: strip credentials from smb:// URIs

Closes https://github.com/MusicPlayerDaemon/MPD/issues/910
This commit is contained in:
Max Kellermann 2020-06-22 22:48:49 +02:00
parent 43c32372e7
commit a43ee97746
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.21.25 (not yet released)
* protocol:
- fix crash when using "rangeid" while playing
* input
- smbclient: don't send credentials to MPD clients
ver 0.21.24 (2020/06/10)
* protocol

View File

@ -170,6 +170,7 @@ SkipUriScheme(const char *uri) noexcept
static const char *const schemes[] = {
"http://", "https://",
"ftp://",
"smb://",
};
for (auto scheme : schemes) {