Commit 63406efc authored by Max Kellermann's avatar Max Kellermann

db/update/ExcludeList: allow comments only at start of line

parent d5c132fc
......@@ -2,6 +2,7 @@ ver 0.20.21 (not yet released)
* database
- proxy: add "password" setting
- proxy: support tags "ArtistSort", "AlbumArtistSort", "AlbumSort"
- simple: allow .mpdignore comments only at start of line
* output
- httpd: remove broken DLNA support code
......
......@@ -38,12 +38,8 @@
inline void
ExcludeList::ParseLine(char *line) noexcept
{
char *p = strchr(line, '#');
if (p != nullptr)
*p = 0;
p = Strip(line);
if (*p != 0)
char *p = Strip(line);
if (*p != 0 && *p != '#')
patterns.emplace_front(p);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment