mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 11:27:18 +00:00
Repair xss bug (#5256)
* repair upload file with same script name bug * update repo name xss bug * fix: transform lib xss bug * optimize code
This commit is contained in:
@@ -5,6 +5,7 @@ import { gettext, repoPasswordMinLength } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import toaster from '../toast';
|
||||
import StyledTitle from '../styled-title';
|
||||
|
||||
const propTypes = {
|
||||
repoID: PropTypes.string.isRequired,
|
||||
@@ -98,7 +99,9 @@ class ChangeRepoPasswordDialog extends React.Component {
|
||||
return (
|
||||
<Modal isOpen={true} centered={true} style={{height: 'auto'}}>
|
||||
<ModalHeader toggle={toggleDialog}>
|
||||
<span dangerouslySetInnerHTML={{__html: Utils.generateDialogTitle(gettext('Change Password of Library {placeholder}'), repoName)}}></span>
|
||||
<span>
|
||||
{gettext("Change Password of Library")}{' '}<StyledTitle title={repoName} />
|
||||
</span>
|
||||
</ModalHeader>
|
||||
<ModalBody>
|
||||
<form id="repo-change-passwd-form" action="" method="post">
|
||||
|
Reference in New Issue
Block a user