encode html entities

This commit is contained in:
rlx 2016-01-17 13:27:49 +05:30
parent bd3c30e260
commit fb80c952ee

View file

@ -143,12 +143,14 @@ oml.ui.infoView = function(externalData, isMixed) {
var items = [];
if (ui._lists) {
items = ui._lists.filter(function(list) {
return list.user == oml.user.preferences.username
return list.user === ''
&& list.type != 'smart';
}).map(function(list) {
return {
id: list.id,
title: Ox._('Download to {0}', [list.name])
title: Ox._('Download to {0}', [
Ox.encodeHTMLEntities(list.name)
])
};
});
items.splice(1, 0, [{}]);
@ -171,6 +173,7 @@ oml.ui.infoView = function(externalData, isMixed) {
if (data.mediastate == 'unavailable' && !ui._lists) {
setListItems();
}
var $element = (data.mediastate == 'unavailable' || Ox.isUndefined(data.mediastate))
? Ox.FormElementGroup({
elements: [