- Fixed a missing parenthesis pair within the URL

This commit is contained in:
Dave Mc Nicoll 2023-04-13 15:47:12 -04:00
parent f8b018144b
commit fe37cfe246
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class DumpHandler {
'file' => $trace['file'],
'line' => $trace['line'],
'title' => substr(strip_tags(trim(str_replace([' '], [''], $message))), 0, 255),
'url' => ( ( 'on' === $_SERVER['HTTPS'] ?? false ) ? 'https' : 'http' ) . '://' . ( $_SERVER['HTTP_HOST'] ?? "") . ( $_SERVER["REQUEST_URI"] ?? "" ),
'url' => ( ( 'on' === ($_SERVER['HTTPS'] ?? false) ) ? 'https' : 'http' ) . '://' . ( $_SERVER['HTTP_HOST'] ?? "") . ( $_SERVER["REQUEST_URI"] ?? "" ),
'backtrace' => json_encode($backtrace),
'source' => ( new SourceCodeFormatter() )->generateFromFile($trace['file'] === "unknown" ? "" : $trace['file'], $trace['line']),
'data' => [