Commit 7eefd54b authored by Fabian Franz's avatar Fabian Franz

move before description and move of newline

parent 5b40c7ae
...@@ -91,14 +91,14 @@ if (isset($_POST['Submit'])) { ...@@ -91,14 +91,14 @@ if (isset($_POST['Submit'])) {
if (!empty($email)) { if (!empty($email)) {
$crash_report_header .= "Email {$email}\n"; $crash_report_header .= "Email {$email}\n";
} }
if (isset($_SERVER["HTTP_USER_AGENT"]))
{
$crash_report_header .= "User Agent " . $_SERVER["HTTP_USER_AGENT"] . "\n";
}
$desc = trim($_POST['Desc']); $desc = trim($_POST['Desc']);
if (!empty($desc)) { if (!empty($desc)) {
$crash_report_header .= "Description\n\n{$desc}"; $crash_report_header .= "Description\n\n{$desc}";
} }
if (isset($_SERVER["HTTP_USER_AGENT"]))
{
$crash_report_header .= "User Agent\n\n" . $_SERVER["HTTP_USER_AGENT"];
}
file_put_contents('/var/crash/crashreport_header.txt', $crash_report_header); file_put_contents('/var/crash/crashreport_header.txt', $crash_report_header);
@rename('/tmp/PHP_errors.log', '/var/crash/PHP_errors.log'); @rename('/tmp/PHP_errors.log', '/var/crash/PHP_errors.log');
@copy('/var/run/dmesg.boot', '/var/crash/dmesg.boot'); @copy('/var/run/dmesg.boot', '/var/crash/dmesg.boot');
......
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