diff options
Diffstat (limited to '')
-rw-r--r-- | src/stored_playlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c index f283ab98b..131c2098a 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -323,6 +323,9 @@ spl_delete(const char *name_utf8) char *path_fs; int ret; + if (!spl_valid_name(name_utf8)) + return PLAYLIST_RESULT_BAD_NAME; + path_fs = map_spl_utf8_to_fs(name_utf8); if (path_fs == NULL) return PLAYLIST_RESULT_DISABLED; |