1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

fixup for i18n; avoid XSS

- fixup for PR#5256
This commit is contained in:
llj
2022-10-09 18:32:03 +08:00
parent c924f1015b
commit a14e45ca96
9 changed files with 23 additions and 66 deletions

View File

@@ -5,7 +5,6 @@ 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,
@@ -100,7 +99,7 @@ class ChangeRepoPasswordDialog extends React.Component {
<Modal isOpen={true} centered={true} style={{height: 'auto'}}>
<ModalHeader toggle={toggleDialog}>
<span>
{gettext("Change Password of Library")}{' '}<StyledTitle title={repoName} />
{Utils.generateDialogTitle(gettext('Change Password of Library {placeholder}'), repoName)}
</span>
</ModalHeader>
<ModalBody>