mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Merge pull request #31 from mabashian/7281-xss-inv-source
Fix inv source schedule title sanitizing
This commit is contained in:
commit
2125a9b8d0
@ -44,9 +44,9 @@ export default {
|
||||
},
|
||||
// target the un-named ui-view @ root level
|
||||
'@': {
|
||||
templateProvider: function(ScheduleList, generateList, ParentObject) {
|
||||
templateProvider: function(ScheduleList, generateList, ParentObject, $filter) {
|
||||
// include name of parent resource in listTitle
|
||||
ScheduleList.listTitle = `${ParentObject.name}<div class='List-titleLockup'></div>` + N_('SCHEDULES');
|
||||
ScheduleList.listTitle = `${$filter('sanitize')(ParentObject.name)}<div class='List-titleLockup'></div>` + N_('SCHEDULES');
|
||||
let html = generateList.build({
|
||||
list: ScheduleList,
|
||||
mode: 'edit'
|
||||
|
||||
@ -12,7 +12,7 @@ export default ['i18n', function(i18n) {
|
||||
iterator: 'schedule',
|
||||
selectTitle: '',
|
||||
editTitle: 'SCHEDULES',
|
||||
listTitle: '{{parentObject}} || SCHEDULES',
|
||||
listTitle: '{{parentObject | sanitize}} || SCHEDULES',
|
||||
index: false,
|
||||
hover: true,
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user