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().
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user