Fixed the cross-site scripting vulnerability. #5405

This commit is contained in:
Khushboo Vashi
2022-10-06 17:30:41 +05:30
committed by GitHub
parent b519af280b
commit e3a172e0e8
3 changed files with 4 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
onChange={(e)=>onTextChange(e.target.checked, 'save_password')} disabled={!data.allow_save_password} />
</Box>
</>}
<FormFooterMessage type={MESSAGE_TYPE.ERROR} message={data.errmsg} closable={false} style={{
<FormFooterMessage type={MESSAGE_TYPE.ERROR} message={_.escape(data.errmsg)} closable={false} style={{
position: 'unset', padding: '12px 0px 0px'
}}/>
</Box>