fix(security): treat messages as text, not HTML (#38062)
This commit is contained in:
committed by
Ahmad Abdolsaheb
parent
978bae6716
commit
bb5a9e8153
@ -11,7 +11,7 @@ function Flash({ flashMessage, onClose }) {
|
|||||||
<TransitionGroup>
|
<TransitionGroup>
|
||||||
<CSSTransition classNames='flash-message' key={id} timeout={500}>
|
<CSSTransition classNames='flash-message' key={id} timeout={500}>
|
||||||
<Alert bsStyle={type} className='flash-message' onDismiss={onClose}>
|
<Alert bsStyle={type} className='flash-message' onDismiss={onClose}>
|
||||||
<div dangerouslySetInnerHTML={{ __html: message }} />
|
{message}
|
||||||
</Alert>
|
</Alert>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
|
Reference in New Issue
Block a user