Skip to content

Commit

Permalink
Escape error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Dec 23, 2024
1 parent 5c046cc commit 11778aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.TXT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
6.8.0 (2024-12-23)
-
- Escape error message.

6.7.8 (2024-12-13)
- Improve SVG detection by checking for (mandatory) namespace.
Expand Down
1 change: 1 addition & 0 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3007,6 +3007,7 @@ public function setAllowLocalFiles($allowLocalFiles) {
public function Error($msg) {
// unset all class variables
$this->_destroy(true);
$msg = htmlspecialchars($msg, ENT_QUOTES, 'UTF-8');
if (defined('K_TCPDF_THROW_EXCEPTION_ERROR') AND !K_TCPDF_THROW_EXCEPTION_ERROR) {
die('<strong>TCPDF ERROR: </strong>'.$msg);
} else {
Expand Down

0 comments on commit 11778aa

Please sign in to comment.