Skip to content

Commit

Permalink
Merge pull request #10 from pronamic/9-error-exceptionnotescaped-in-c…
Browse files Browse the repository at this point in the history
…urrencyphp-line-96

Escape `$alphabetic_code` in exception message
  • Loading branch information
remcotolsma authored Oct 2, 2024
2 parents 3e3e948 + 9266be4 commit 08cfe3d
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 08cfe3d

Please sign in to comment.