client: use encodeURI on download links. closes #168
This commit is contained in:
parent
9fa3ebac52
commit
3fee3df88c
1 changed files with 2 additions and 2 deletions
|
|
@ -1620,7 +1620,7 @@ function setUpPlaylistUi(){
|
|||
}
|
||||
if (!selection.isMulti()) {
|
||||
var item = player.playlist.itemTable[trackId];
|
||||
$playlistMenu.find('.download').attr('href', 'library/' + item.track.file);
|
||||
$playlistMenu.find('.download').attr('href', 'library/' + encodeURI(item.track.file));
|
||||
} else {
|
||||
$playlistMenu.find('.download').attr('href', '#');
|
||||
}
|
||||
|
|
@ -2201,7 +2201,7 @@ function genericTreeUi($elem, options){
|
|||
}
|
||||
}
|
||||
if (track) {
|
||||
$libraryMenu.find('.download').attr('href', 'library/' + track.file);
|
||||
$libraryMenu.find('.download').attr('href', 'library/' + encodeURI(track.file));
|
||||
} else {
|
||||
$libraryMenu.find('.download').attr('href', '#');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue