db/update/Archive: ignore filenames with newline character
This commit is contained in:
parent
16a99804de
commit
96befa138c
@ -55,7 +55,9 @@ LockFindSong(Directory &directory, std::string_view name) noexcept
|
||||
static bool
|
||||
IsAcceptableFilename(std::string_view name) noexcept
|
||||
{
|
||||
return !name.empty();
|
||||
return !name.empty() &&
|
||||
/* newlines cannot be represented in MPD's protocol */
|
||||
name.find('\n') == name.npos;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user