Commit 15fc3666 authored by Fabian Franz's avatar Fabian Franz Committed by Franco Fichtner

added user agent to crash reporter

parent d5e0214d
......@@ -77,6 +77,10 @@ $crash_report_header = sprintf(
shell_exec('/sbin/sysctl -b kern.hostuuid')
);
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$crash_report_header .= "User Agent {$_SERVER['HTTP_USER_AGENT']}\n";
}
$pkgver = explode('-', trim(file_get_contents('/usr/local/opnsense/version/opnsense')));
$user_agent = $g['product_name'] . '/' . $pkgver[0];
$crash_reports = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment