Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageSize 未做最大值限制 #106

Open
Ri0nGo opened this issue Dec 29, 2023 · 0 comments
Open

pageSize 未做最大值限制 #106

Ri0nGo opened this issue Dec 29, 2023 · 0 comments

Comments

@Ri0nGo
Copy link

Ri0nGo commented Dec 29, 2023

您好,我在代码中发现很多地方都是通过等号来做pageSize校验,若用户传入的的pageSize = 100000, 会造成大数据查询。

请问您是出于什么考虑吗?

	if page == 0 {
		page = 1
	}

	pageSize := searchData.PageSize
	if pageSize == 0 {
		pageSize = 10
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant