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

View File

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