diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 14:19:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 14:19:28 +0100 |
commit | bdfb6c239af53d72f0808fc34e15d671036e8832 (patch) | |
tree | 324009ec76b733aa56172861900accb499fad55d /src/playlist.c | |
parent | 98cb8f3969de6b0151d2777b2344d6ff8fd44f1b (diff) | |
download | mpd-bdfb6c239af53d72f0808fc34e15d671036e8832.tar.gz mpd-bdfb6c239af53d72f0808fc34e15d671036e8832.tar.xz mpd-bdfb6c239af53d72f0808fc34e15d671036e8832.zip |
playlist: moved is_valid_playlist_name() to stored_playlist.c
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/playlist.c b/src/playlist.c index 04cb59f3c..ab23691e3 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1091,19 +1091,3 @@ unsigned getPlaylistSongId(unsigned song) { return queue_position_to_id(&playlist.queue, song); } - -/* - * Not supporting '/' was done out of laziness, and we should really - * strive to support it in the future. - * - * Not supporting '\r' and '\n' is done out of protocol limitations (and - * arguably laziness), but bending over head over heels to modify the - * protocol (and compatibility with all clients) to support idiots who - * put '\r' and '\n' in filenames isn't going to happen, either. - */ -int is_valid_playlist_name(const char *utf8path) -{ - return strchr(utf8path, '/') == NULL && - strchr(utf8path, '\n') == NULL && - strchr(utf8path, '\r') == NULL; -} |