diff --git a/src/Gateway/MolliePaymentGateway.php b/src/Gateway/MolliePaymentGateway.php index 455bdc03..8e62598f 100644 --- a/src/Gateway/MolliePaymentGateway.php +++ b/src/Gateway/MolliePaymentGateway.php @@ -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; }