mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
Don't process lines beginning with non-alphanumerical chars, since
they might mess things up.
This commit is contained in:
parent
fe79922c6e
commit
f4cc74e7fb
@ -137,7 +137,7 @@ scan_m3u_playlist(char *file, time_t mtime)
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
||||
if ((!isalnum(buf[0])) || (buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
||||
continue;
|
||||
|
||||
while (isspace(buf[len - 1]))
|
||||
|
Loading…
Reference in New Issue
Block a user