Fix tcpdi_parser infinite loop

When mergin some old PDF we may have an infinite loop with this warning : "PHP Warning:  Illegal string offset 'Type' in ./htdocs/includes/tcpdi/tcpdi_parser.php on line 706"
This commit is contained in:
Sylvain Legrand 2023-02-20 18:44:36 +01:00
parent 659718b41f
commit 12cd6c0ddf

View File

@ -715,8 +715,7 @@ class tcpdi_parser {
$next = strcspn($data, "\r\n", $offset);
if ($next > 0) {
$offset += $next;
list($obj, $unused) = $this->getRawObject($offset, $data);
return $obj;
return $this->getRawObject($offset, $data);
}
break;
}