From f71ca74367fca18a149d7b55c1feaafce2b776ac Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:26:08 +0100 Subject: [PATCH] Fix "All output should be run through an escaping function". --- src/Gateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 8ff501c..9229bdb 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -120,7 +120,7 @@ public function set_redirection_info( $ee_payment, $billing_info = [], $return_u $error = Plugin::get_default_error_message(); // @link https://github.com/eventespresso/event-espresso-core/blob/4.6.18.p/caffeinated/payment_methods/Mijireh/EEG_Mijireh.gateway.php#L147 - throw new EE_Error( $error ); + throw new EE_Error( \esc_html( $error ) ); } $transaction = $ee_payment->transaction(); @@ -206,7 +206,7 @@ public function set_redirection_info( $ee_payment, $billing_info = [], $return_u EE_Error::add_error( $error_message, __FILE__, __FUNCTION__, __LINE__ ); - throw new EE_Error( $error_message ); + throw new EE_Error( \esc_html( $error_message ) ); } return $ee_payment;