Skip to content

Commit

Permalink
Use wc_clean instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed May 22, 2024
1 parent 093d7c0 commit f01ec93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateway/MolliePaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@ public function onOrderReceivedText($text, $order)
public function getSelectedIssuer(): ?string
{
$issuer_id = $this->pluginId . '_issuer_' . $this->id;

$postedIssuer = sanitize_text_field($_POST[$issuer_id] ?? '');
//phpcs:ignore WordPress.Security.NonceVerification
$postedIssuer = wc_clean(wp_unslash($_POST[$issuer_id] ?? ''));
return !empty($postedIssuer) ? $postedIssuer : null;
}

Expand Down

0 comments on commit f01ec93

Please sign in to comment.