GetByDotKey("Instance.DebugMode") == "true"; Logger::Fatal("Incident ID: $incidentId"); $details = json_encode($_SERVER, JSON_PRETTY_PRINT); Logger::Fatal($details); $otherDetails = json_encode($_REQUEST, JSON_PRETTY_PRINT); Logger::Fatal($otherDetails); parent::__construct("Security fault tripped: $message", $code, $previous); $details = $devmode ? $details : "Redacted"; $otherDetails = $devmode ? $otherDetails : "Redacted"; http_response_code(403); CORSHelper(); die(<<
Your request has been terminated, and the incident has been logged. Please contact the site administrator if you believe this was in error.
Message: $message
Incident ID: $incidentId
$details
$otherDetails