diff --git a/tcpdf.php b/tcpdf.php index 0ba2b138..51e3c2ff 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -17237,10 +17237,10 @@ protected function unserializeTCPDFtag($data) { * @protected */ protected function allowedTCPDFtag($method) { - if ((!defined('K_ALLOWED_TCPDF_TAGS')) OR (empty(K_ALLOWED_TCPDF_TAGS))) { - return false; + if (defined('K_ALLOWED_TCPDF_TAGS')) { + return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false); } - return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false); + return false; } /**