forked from github/dataease
fix: xss导致页脚属性显示不正常
This commit is contained in:
parent
6de62d5087
commit
96bffefe7a
@ -455,6 +455,7 @@ export default {
|
|||||||
whiteList: {
|
whiteList: {
|
||||||
'background-color': true,
|
'background-color': true,
|
||||||
'text-align': true,
|
'text-align': true,
|
||||||
|
'color': true,
|
||||||
'margin-top': true,
|
'margin-top': true,
|
||||||
'margin-bottom': true,
|
'margin-bottom': true,
|
||||||
'line-height': true,
|
'line-height': true,
|
||||||
@ -465,7 +466,8 @@ export default {
|
|||||||
},
|
},
|
||||||
whiteList: {
|
whiteList: {
|
||||||
...xss.whiteList,
|
...xss.whiteList,
|
||||||
p: ['style']
|
p: ['style'],
|
||||||
|
span: ['style']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.footContent = myXss.process(content)
|
this.footContent = myXss.process(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user