Commit cd69fee0 authored by Max Kellermann's avatar Max Kellermann

command: verify playlist name in the "rm" command

Call spl_valid_name() in spl_delete().
parent 23e46b38
......@@ -4,6 +4,7 @@ ver 0.15.7 (2009/??/??)
* decoders:
- ffmpeg: don't try to force stereo
* mapper: fix memory leak when playlist_directory is not set
* command: verify playlist name in the "rm" command
ver 0.15.6 (2009/11/18)
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment