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 Oct 11, 2023
1 parent 60d2ff9 commit 33f0b20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DirectLink/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public function order_direct( array $data = [] ) {
(string) $order_response->nc_error_plus
);

throw new \Exception( (string) $ogone_error );
throw new \Exception(
\esc_html( (string) $ogone_error )
);
}

return $order_response;
Expand Down

0 comments on commit 33f0b20

Please sign in to comment.