Skip to content

pr: [Nightly Fix] - Null Safety - Guard Stripe Settings Payload#41

Open
jewel-claw wants to merge 1 commit into
masterfrom
nightly-fix/stripe-settings-payload-guard
Open

pr: [Nightly Fix] - Null Safety - Guard Stripe Settings Payload#41
jewel-claw wants to merge 1 commit into
masterfrom
nightly-fix/stripe-settings-payload-guard

Conversation

@jewel-claw

Copy link
Copy Markdown

What

The Stripe settings save endpoint assumes $_REQUEST["settings"] and several nested keys always exist.

Why

Malformed or partial admin requests can trigger undefined-index notices before validation runs.

Fix

Treat settings as an optional array, default the payment mode safely, and read individual keys through ArrayHelper::get() when building the saved payload.

Confidence

Confirmed in code review and validated with php -l on the modified file.

@greptile-apps

greptile-apps Bot commented Mar 12, 2026

Copy link
Copy Markdown

PR author is not in the allowed authors list.

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 this pull request may close these issues.

1 participant