File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,18 @@ function upload_crash_report($files, $agent)
63
63
64
64
$ last_version = '/usr/local/opnsense/version/opnsense.last ' ;
65
65
$ crash_report_header = sprintf (
66
- "%s \n%s %s%s %s (%s) \n UUID %s \ nTime %s \n" ,
66
+ "%s \n%s %s%s %s (%s) \nTime %s \n" ,
67
67
php_uname ('v ' ),
68
68
$ g ['product_name ' ],
69
69
trim (file_get_contents ('/usr/local/opnsense/version/opnsense ' )),
70
70
file_exists ($ last_version ) ? sprintf (' [%s] ' , trim (file_get_contents ($ last_version ))) : '' ,
71
71
trim (shell_exec ('/usr/local/bin/openssl version ' )),
72
72
trim (shell_exec ('uname -p ' )),
73
- shell_exec ('/sbin/sysctl -b kern.hostuuid ' ),
74
73
date ('r ' )
75
74
);
76
75
77
76
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 } " ;
79
78
}
80
79
81
80
$ pkgver = explode ('- ' , trim (file_get_contents ('/usr/local/opnsense/version/opnsense ' )));
You can’t perform that action at this time.
0 commit comments