Skip to content

Commit

Permalink
Fix PCRE stack limit for context parsing, omitting preg
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Carlson committed May 10, 2024
1 parent 05d0936 commit 1b76585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logs/LaravelLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function extractContextsFromFullText(): void
$contexts = [];

// Find matches.
$json_strings = $this->getJsonStrings();
$json_strings = $this->getJsonStringsFromFullText();

if (empty($json_strings)) {
return;
Expand Down Expand Up @@ -180,7 +180,7 @@ protected function extractMailPreview(): void
];
}

protected function getJsonStrings(): array
protected function getJsonStringsFromFullText(): array
{
$json = '';
$json_strings = [];
Expand Down

0 comments on commit 1b76585

Please sign in to comment.