From f01ec93c3d66edd08a8442f551e4dde745f88a27 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Wed, 22 May 2024 10:48:15 +0200 Subject: [PATCH] Use wc_clean instead --- src/Gateway/MolliePaymentGateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }