Skip to content

Commit

Permalink
Fix "All output should be run through an escaping function".
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 26, 2024
1 parent a82a912 commit f71ca74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f71ca74

Please sign in to comment.