Skip to content

Commit

Permalink
firmware: don't track UUID in a crash report submission anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 1, 2016
1 parent 672ac99 commit 8396904
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/www/crash_reporter.php
Expand Up @@ -63,19 +63,18 @@ function upload_crash_report($files, $agent)

$last_version = '/usr/local/opnsense/version/opnsense.last';
$crash_report_header = sprintf(
"%s\n%s %s%s %s (%s)\nUUID %s\nTime %s\n",
"%s\n%s %s%s %s (%s)\nTime %s\n",
php_uname('v'),
$g['product_name'],
trim(file_get_contents('/usr/local/opnsense/version/opnsense')),
file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '',
trim(shell_exec('/usr/local/bin/openssl version')),
trim(shell_exec('uname -p')),
shell_exec('/sbin/sysctl -b kern.hostuuid'),
date('r')
);

if (isset($_SERVER['HTTP_USER_AGENT'])) {
$crash_report_header .= "User Agent {$_SERVER['HTTP_USER_AGENT']}\n";
$crash_report_header = "User Agent {$_SERVER['HTTP_USER_AGENT']}\n{$crash_reporter_header}";
}

$pkgver = explode('-', trim(file_get_contents('/usr/local/opnsense/version/opnsense')));
Expand Down

0 comments on commit 8396904

Please sign in to comment.