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;