From a43ee977462fdd29d6fcc6084978f7a0c5666ff2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Jun 2020 22:48:49 +0200 Subject: [PATCH] util/UriUtil: strip credentials from smb:// URIs Closes https://github.com/MusicPlayerDaemon/MPD/issues/910 --- NEWS | 2 ++ src/util/UriUtil.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 162346ec3..bd4caf30b 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/util/UriUtil.cxx b/src/util/UriUtil.cxx index c9100f4c0..587a9a3a2 100644 --- a/src/util/UriUtil.cxx +++ b/src/util/UriUtil.cxx @@ -170,6 +170,7 @@ SkipUriScheme(const char *uri) noexcept static const char *const schemes[] = { "http://", "https://", "ftp://", + "smb://", }; for (auto scheme : schemes) {