diff --git a/src/www/diag_authentication.php b/src/www/diag_authentication.php
index f9980239c..7a8bdb29d 100644
--- a/src/www/diag_authentication.php
+++ b/src/www/diag_authentication.php
@@ -68,6 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (is_array($attr_value)) {
$attr_value = implode(",", $attr_value);
}
+ $attr_value = str_replace("\n", "
", $attr_value);
$savemsg .= "{$attr_name} => {$attr_value}
";
}
} else {