Skip to content

Commit 11778aa

Browse files
committed
Escape error message
1 parent 5c046cc commit 11778aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.TXT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
6.8.0 (2024-12-23)
2-
-
2+
- Escape error message.
33

44
6.7.8 (2024-12-13)
55
- Improve SVG detection by checking for (mandatory) namespace.

tcpdf.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,6 +3007,7 @@ public function setAllowLocalFiles($allowLocalFiles) {
30073007
public function Error($msg) {
30083008
// unset all class variables
30093009
$this->_destroy(true);
3010+
$msg = htmlspecialchars($msg, ENT_QUOTES, 'UTF-8');
30103011
if (defined('K_TCPDF_THROW_EXCEPTION_ERROR') AND !K_TCPDF_THROW_EXCEPTION_ERROR) {
30113012
die('<strong>TCPDF ERROR: </strong>'.$msg);
30123013
} else {

0 commit comments

Comments
 (0)