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

[stable28] fix(Request): Catch exceptions in isTrustedProxy #43192

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jan 29, 2024

Backport of PR #42794

The function fails if the configured trusted proxies contain invalid characters and the underlying IpUtils will throw.
But as it is used by `getRemoteAddress` which is used by logging / templating, thrown errors are not reported but silently fail with error 500.

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@backportbot backportbot bot added bug 3. to review Waiting for reviews php Pull requests that update Php code labels Jan 29, 2024
@backportbot backportbot bot added this to the Nextcloud 28.0.2 milestone Jan 29, 2024
@susnux susnux merged commit 6bdee05 into stable28 Feb 1, 2024
50 checks passed
@susnux susnux deleted the backport/42794/stable28 branch February 1, 2024 11:16
@skjnldsv skjnldsv mentioned this pull request Feb 14, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants