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

Fix: add additional escaping to stripe onboarding #7391

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function getRedirectUrl( $sessionId, $formId )
}

/**
* @unreleased add esc_attr to $session_id
* @since 2.5.5
* @since 2.19.0 Migrated from the legacy Give_Stripe_Checkout::redirect_to_checkout implementation of the Stripe Checkout Gateway.
* @return void
Expand Down Expand Up @@ -83,7 +84,7 @@ public static function maybeHandleRedirect()
// Make the id field from the Checkout Session creation API response
// available to this file, so you can provide it as parameter here
// instead of the {{CHECKOUT_SESSION_ID}} placeholder.
sessionId: '<?php echo $session_id; ?>'
sessionId: '<?php echo esc_attr($session_id); ?>'
}).then( ( result ) => {
console.log(result);
// If `redirectToCheckout` fails due to a browser or network
Expand Down
Loading