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] Passing GET parameters as array creates error log entries #3062

Open
smichaelsen opened this issue Oct 15, 2021 · 0 comments · May be fixed by #3063
Open

[BUG] Passing GET parameters as array creates error log entries #3062

smichaelsen opened this issue Oct 15, 2021 · 0 comments · May be fixed by #3063

Comments

@smichaelsen
Copy link
Contributor

Describe the bug
When you pass certain GET parameters as array, that creates TYPO3 error log entries like this:

Uncaught TYPO3 Exception: #1476107295: PHP Warning: trim() expects parameter 1 to be string, array given in /path/private/typo3conf/ext/solr/Classes/Domain/Search/SearchRequest.php line 562

To Reproduce
https://www.example.com/search/?search[filter][0][]=type:News&search[q][]=nhsi4k1z

Expected behavior
Parameters should be validated and handled gracefully instead of triggering PHP Warnings which lead to TYPO3 Exceptions.

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

Successfully merging a pull request may close this issue.

1 participant