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:
parent
659718b41f
commit
12cd6c0ddf
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user