We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee2339 commit c8c3a98Copy full SHA for c8c3a98
src/class-aggregator.php
@@ -54,9 +54,6 @@ public static function run(): void
54
return;
55
}
56
57
- // read and ignore first line (the PHP header that prevents direct file access)
58
- \fgets($file_handle);
59
-
60
while (($line = \fgets($file_handle)) !== false) {
61
$line = \trim($line);
62
if ($line === '' || $line === '<?php exit; ?>') {
@@ -66,6 +63,7 @@ public static function run(): void
66
63
$params = \unserialize($line, ['allowed_classes' => false]);
67
64
if (! \is_array($params)) {
68
65
error_log('Koko Analytics: unserialize error encountered while processing line in buffer file');
+ continue;
69
70
$type = \array_shift($params);
71
0 commit comments