various minor fixes for issues found by community member awsome

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-25 21:02:54 +02:00
parent 402dc8cf42
commit 5525b927c1
7 changed files with 34 additions and 8 deletions

View File

@@ -95,12 +95,13 @@ if (!empty($errid)) {
// finally remove error from fs
@unlink($err_file);
Response::redirectTo($filename);
Response::standardSuccess('sent_error_report', '', ['filename' => 'index.php']);
}
// show a nice summary of the error-report
// before actually sending anything
UI::view('user/error_report.html.twig', [
'mail_html' => $mail_body
'mail_html' => $mail_body,
'errorid' => $errid
]);
} else {
Response::redirectTo($filename);