From: Mischa POSLAWSKY Date: Mon, 27 Dec 2021 18:21:48 +0000 (+0100) Subject: login/pass: error messages below page title X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/HEAD login/pass: error messages below page title Headers prepended probably since commit v4.5-6-g50f9b29cc2 (2020-12-19) [page: ignore output buffer in article render]. --- diff --git a/login/pass/index.php b/login/pass/index.php index 4fb50d0..8db1c88 100644 --- a/login/pass/index.php +++ b/login/pass/index.php @@ -9,7 +9,7 @@ if (isset($_GET['token'])) { } else { http_response_code(403); - print "

Code onjuist, geen toestemming om wachtwoord in te stellen.

\n"; + $Page->place['warn'] = "Code onjuist, geen toestemming om wachtwoord in te stellen."; return TRUE; } } @@ -26,7 +26,7 @@ if ($_POST) { return; } http_response_code(400); - print "

$error

\n\n"; + $Page->place['warn'] = $error; } ?> @@ -44,3 +44,5 @@ Dit zal de huidige code vervangen.

+raw .= ob_get_clean();