fix: Don't break on whitespace. Helpful for JSON 🐛

This commit is contained in:
2024-10-24 16:26:31 +13:00
parent 0c05079327
commit e1cac1e31d

View File

@@ -269,7 +269,7 @@ class UglyQueue implements \Serializable, \SplSubject, \Countable
$data = array();
$start_line = $lineCount - $count;
$i = 0;
while (($line = fscanf($queueFileHandle, "%s\t%s\n")) !== false && $i < $lineCount)
while (($line = fscanf($queueFileHandle, "%s\t%[^\n]")) !== false && $i < $lineCount)
{
if ($i++ >= $start_line)
{