PlaylistFile: don't allow empty playlist name
This commit is contained in:
parent
c882568ccd
commit
6ad336743d
1
NEWS
1
NEWS
|
@ -1,5 +1,6 @@
|
||||||
ver 0.18.17 (not yet released)
|
ver 0.18.17 (not yet released)
|
||||||
* playlist
|
* playlist
|
||||||
|
- don't allow empty playlist name
|
||||||
- m3u: recognize the file suffix ".m3u8"
|
- m3u: recognize the file suffix ".m3u8"
|
||||||
* decoder
|
* decoder
|
||||||
- faad: remove workaround for ancient libfaad2 ABI bug
|
- faad: remove workaround for ancient libfaad2 ABI bug
|
||||||
|
|
|
@ -69,6 +69,10 @@ spl_global_init(void)
|
||||||
bool
|
bool
|
||||||
spl_valid_name(const char *name_utf8)
|
spl_valid_name(const char *name_utf8)
|
||||||
{
|
{
|
||||||
|
if (*name_utf8 == 0)
|
||||||
|
/* empty name not allowed */
|
||||||
|
return false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Not supporting '/' was done out of laziness, and we should
|
* Not supporting '/' was done out of laziness, and we should
|
||||||
* really strive to support it in the future.
|
* really strive to support it in the future.
|
||||||
|
|
Loading…
Reference in New Issue