encode html entities
This commit is contained in:
parent
bd3c30e260
commit
fb80c952ee
1 changed files with 5 additions and 2 deletions
|
@ -143,12 +143,14 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
var items = [];
|
var items = [];
|
||||||
if (ui._lists) {
|
if (ui._lists) {
|
||||||
items = ui._lists.filter(function(list) {
|
items = ui._lists.filter(function(list) {
|
||||||
return list.user == oml.user.preferences.username
|
return list.user === ''
|
||||||
&& list.type != 'smart';
|
&& list.type != 'smart';
|
||||||
}).map(function(list) {
|
}).map(function(list) {
|
||||||
return {
|
return {
|
||||||
id: list.id,
|
id: list.id,
|
||||||
title: Ox._('Download to {0}', [list.name])
|
title: Ox._('Download to {0}', [
|
||||||
|
Ox.encodeHTMLEntities(list.name)
|
||||||
|
])
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
items.splice(1, 0, [{}]);
|
items.splice(1, 0, [{}]);
|
||||||
|
@ -171,6 +173,7 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
if (data.mediastate == 'unavailable' && !ui._lists) {
|
if (data.mediastate == 'unavailable' && !ui._lists) {
|
||||||
setListItems();
|
setListItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
var $element = (data.mediastate == 'unavailable' || Ox.isUndefined(data.mediastate))
|
var $element = (data.mediastate == 'unavailable' || Ox.isUndefined(data.mediastate))
|
||||||
? Ox.FormElementGroup({
|
? Ox.FormElementGroup({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
Loading…
Reference in a new issue