Skip to content

Commit

Permalink
No longer use HTML <br> element in exception message and escape values.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 11, 2023
1 parent 33f0b20 commit 2fc139e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OrderStandard/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ public function get_order_status( $order_id ) {

throw new \Exception(
\sprintf(
'%s<br>%s',
sprintf( 'Could not get order status for order ID %s.', $order_id ),
(string) $ogone_error
'Could not get order status for order ID %s, error: %s.',
\esc_html( $order_id ),
\esc_html( (string) $ogone_error )
)
);
}
Expand Down

0 comments on commit 2fc139e

Please sign in to comment.