1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

10.0 fix batch generate share links number (#5602)

* fix batch generate share links number

* fix frontend batch generate share links number
This commit is contained in:
Michael An
2023-08-22 16:44:06 +08:00
committed by GitHub
parent c056c9d01e
commit e1d4b5908a
2 changed files with 8 additions and 0 deletions

View File

@@ -155,6 +155,10 @@ class LinkCreation extends React.Component {
this.setState({errorInfo: gettext('Please enter an integer bigger than 1 as number of links.')});
return false;
}
if (parseInt(linkAmount) > 1000) {
this.setState({errorInfo: gettext('Please enter an integer smaller than 1000 as number of links.')});
return false;
}
}
if (type == 'single' && isShowPasswordInput) {