Skip to content

Commit

Permalink
feat: sanitize data from payment form
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed May 29, 2024
1 parent 39e5434 commit 3e9cf1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function form()
*/
private function handleRequest(array $request, WC_Order $order)
{
$paymentTokenId = $request["wc-{$this->id}-payment-token"] ?? null;
$paymentTokenId = wc_clean($request["wc-{$this->id}-payment-token"]) ?? null;

if ($paymentTokenId === 'new' || is_null($paymentTokenId)) {
return $this->handleInscription($order);
Expand Down

0 comments on commit 3e9cf1c

Please sign in to comment.