Commit 9de5bb9e authored by Max Kellermann's avatar Max Kellermann

queue_print: hide HTTP password in the "playlist" command

I've already changed the "playlistinfo" command to hide HTTP passwords, but forgot to do the same for the simpler "playlist" command. This patch changes queue_print_uris() to use the code from song_print_uri().
parent 0c5305c5
......@@ -61,11 +61,8 @@ queue_print_uris(struct client *client, const struct queue *queue,
assert(end <= queue_length(queue));
for (unsigned i = start; i < end; ++i) {
const struct song *song = queue_get(queue, i);
char *uri = song_get_uri(song);
client_printf(client, "%i:%s\n", i, uri);
g_free(uri);
client_printf(client, "%i:", i);
song_print_uri(client, queue_get(queue, i));
}
}
......
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