Skip to content

Commit

Permalink
Escape $alphabetic_code in exception message.
Browse files Browse the repository at this point in the history
Fixes #9.
  • Loading branch information
remcotolsma committed Oct 2, 2024
1 parent 3e3e948 commit 9266be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ final public function set_alphabetic_code( $alphabetic_code ) {
throw new \InvalidArgumentException(
\sprintf(
'The alphabetical code of a currency must consist of 3 characters: %s.',
$alphabetic_code
\esc_html( $alphabetic_code )
)
);
}
Expand Down

0 comments on commit 9266be4

Please sign in to comment.