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

why is ngx.req.get_uri_args(0) strongly discouraged? #1294

Closed
JoyChou93 opened this issue Apr 3, 2018 · 1 comment
Closed

why is ngx.req.get_uri_args(0) strongly discouraged? #1294

JoyChou93 opened this issue Apr 3, 2018 · 1 comment

Comments

@JoyChou93
Copy link

https://github.com/openresty/lua-nginx-module#ngxreqget_uri_args

why is ngx.req.get_uri_args(0) strongly discouraged?

Removing the max_args cap is strongly discouraged.

@agentzh
Copy link
Member

agentzh commented Apr 3, 2018

@JoyChou93 Because it would be a great way for malicious clients to blow up your server memory and CPU since you have no limit on the number of request arguments.

@agentzh agentzh closed this as completed Apr 3, 2018
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

2 participants