diff --git a/PhpOffice/PhpWord/Shared/PCLZip/pclzip.lib.php b/PhpOffice/PhpWord/Shared/PCLZip/pclzip.lib.php index 6292749..79d59c6 100755 --- a/PhpOffice/PhpWord/Shared/PCLZip/pclzip.lib.php +++ b/PhpOffice/PhpWord/Shared/PCLZip/pclzip.lib.php @@ -1597,7 +1597,7 @@ class PclZip if (is_string($p_options_list[$i + 1])) { // ----- Remove spaces - $p_options_list[$i + 1] = strtr($p_options_list[$i + 1], ' ', ''); + $p_options_list[$i + 1] = \str_replace(' ', '', $p_options_list[$i + 1]); // ----- Parse items $v_work_list = explode(",", $p_options_list[$i + 1]); diff --git a/tcpdf/tcpdf_parser.php b/tcpdf/tcpdf_parser.php index 4156230..2b70ead 100755 --- a/tcpdf/tcpdf_parser.php +++ b/tcpdf/tcpdf_parser.php @@ -600,7 +600,7 @@ class TCPDF_PARSER { ++$offset; if (($char == '<') AND (preg_match('/^([0-9A-Fa-f\x09\x0a\x0c\x0d\x20]+)>/iU', substr($this->pdfdata, $offset), $matches) == 1)) { // remove white space characters - $objval = strtr($matches[1], "\x09\x0a\x0c\x0d\x20", ''); + $objval = \str_replace(["\x09", "\x0a", "\x0c", "\x0d", "\x20"], '', $matches[1]); $offset += strlen($matches[0]); } elseif (($endpos = strpos($this->pdfdata, '>', $offset)) !== FALSE) { $offset = $endpos + 1;