Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Mc Nicoll
e75e7c42be Merge branch 'master' of https://git.mcnd.ca/mcndave/negundo-client 2023-04-13 15:47:18 -04:00
Dave Mc Nicoll
fe37cfe246 - Fixed a missing parenthesis pair within the URL 2023-04-13 15:47:12 -04:00

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' => [