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

Bug: When the $index parameter of getGetPost or getPostGet is null, you will get an error result #2839

Closed
Hermit-xx opened this issue Apr 18, 2020 · 0 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Milestone

Comments

@Hermit-xx
Copy link

CodeIgniter 4 version :4.0.2

When the $index parameter of getGetPost is null(e.g:$data = $request->getGetPost();), I Can't get any Get data,but can get ALL Post Data.

Similarly , when $index parameter of getPostGet is null , I Can't get any POST data,but can get ALL GET Data.

I think when I use getGetPost with $index parameter is null , it should get ALL Get Data, isn't it?

I think the problem should be here:
/system/HTTP/IncomingRequest.php : 430
return isset($_POST[$index]) ? $this->getPost($index, $filter, $flags) : $this->getGet($index, $filter, $flags);
/system/HTTP/IncomingRequest.php : 449
return isset($_GET[$index]) ? $this->getGet($index, $filter, $flags) : $this->getPost($index, $filter, $flags);

@Hermit-xx Hermit-xx added the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 18, 2020
@lonnieezell lonnieezell added this to the 4.0.3 milestone Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants