We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c046cc commit 11778aaCopy full SHA for 11778aa
CHANGELOG.TXT
@@ -1,5 +1,5 @@
1
6.8.0 (2024-12-23)
2
- -
+ - Escape error message.
3
4
6.7.8 (2024-12-13)
5
- Improve SVG detection by checking for (mandatory) namespace.
tcpdf.php
@@ -3007,6 +3007,7 @@ public function setAllowLocalFiles($allowLocalFiles) {
3007
public function Error($msg) {
3008
// unset all class variables
3009
$this->_destroy(true);
3010
+ $msg = htmlspecialchars($msg, ENT_QUOTES, 'UTF-8');
3011
if (defined('K_TCPDF_THROW_EXCEPTION_ERROR') AND !K_TCPDF_THROW_EXCEPTION_ERROR) {
3012
die('<strong>TCPDF ERROR: </strong>'.$msg);
3013
} else {
0 commit comments