Skip to content

Commit 8396904

Browse files
committed
firmware: don't track UUID in a crash report submission anymore
1 parent 672ac99 commit 8396904

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/www/crash_reporter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,18 @@ function upload_crash_report($files, $agent)
6363

6464
$last_version = '/usr/local/opnsense/version/opnsense.last';
6565
$crash_report_header = sprintf(
66-
"%s\n%s %s%s %s (%s)\nUUID %s\nTime %s\n",
66+
"%s\n%s %s%s %s (%s)\nTime %s\n",
6767
php_uname('v'),
6868
$g['product_name'],
6969
trim(file_get_contents('/usr/local/opnsense/version/opnsense')),
7070
file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '',
7171
trim(shell_exec('/usr/local/bin/openssl version')),
7272
trim(shell_exec('uname -p')),
73-
shell_exec('/sbin/sysctl -b kern.hostuuid'),
7473
date('r')
7574
);
7675

7776
if (isset($_SERVER['HTTP_USER_AGENT'])) {
78-
$crash_report_header .= "User Agent {$_SERVER['HTTP_USER_AGENT']}\n";
77+
$crash_report_header = "User Agent {$_SERVER['HTTP_USER_AGENT']}\n{$crash_reporter_header}";
7978
}
8079

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

0 commit comments

Comments
 (0)