From bd5497fe2f392d8836deac72d1dd8e1e0bb30089 Mon Sep 17 00:00:00 2001
From: Miraty
Date: Wed, 29 Jun 2022 00:30:14 +0200
Subject: [PATCH] Use
\n";
+ closeHTML();
+}
+
// When the user requests something unexpected
function userError($msg) {
http_response_code(403);
- echo "Erreur utilisataire : " . $msg . "
\n";
+ echo "Erreur utilisataire : " . $msg . "
\n";
closeHTML();
}
@@ -11,7 +17,7 @@ function userError($msg) {
function serverError($msg) {
http_response_code(500);
error_log("Niver internal error: " . strip_tags($msg));
- echo "Server error: The server encountered an error: " . $msg . "
\n";
+ echo "Server error: The server encountered an error: " . $msg . "
\n";
closeHTML();
}