mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 22:46: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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
if ((!isalnum(buf[0])) || (buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
while (isspace(buf[len - 1]))
|
while (isspace(buf[len - 1]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user