Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cffceb1

Browse files
Pelagossnicolas-grekas
authored andcommitted
[HttpKernel][WebProfilerBundle] Fix search feature
1 parent aefdf42 commit cffceb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public function find(?string $ip, ?string $url, ?int $limit, ?string $method, in
6161
$result = [];
6262
while (\count($result) < $limit && $line = $this->readLineFromFile($file)) {
6363
$values = str_getcsv($line);
64+
65+
if (7 !== \count($values)) {
66+
// skip invalid lines
67+
continue;
68+
}
69+
6470
[$csvToken, $csvIp, $csvMethod, $csvUrl, $csvTime, $csvParent, $csvStatusCode] = $values;
6571
$csvTime = (int) $csvTime;
6672

0 commit comments

Comments
 (0)