You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to fix the issue by adding isset and strict type checking, which seems to resolve the infinite loop. However, I'm not sure if this is the most robust solution. Here's the code I modified at line 725:
while (isset($data[$offset]) && is_string($data[$offset]) && strspn($data[$offset], "\x00\x09\x0a\x0c\x0d\x20") == 1) { $offset++; } // get first char if (isset($data[$offset]) && is_string($data[$offset])) { $char = $data[$offset]; } else { return array(array(PDF_TYPE_NULL, 'null'), $offset); }
I get this error
Uninitialized string offset: 35 application/third_party/tcpdf/tcpdi_parser.php 725
The line on 725 is in method getRawObject
Some idea how to change it? I don't understand what getRawObject should return in this cases.
The text was updated successfully, but these errors were encountered: