From 2241b24c0686b655819683bede887c52be152ecd Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 17:25:38 +0200 Subject: [PATCH] login/list: join multiple names by ampersands Encoded newlines are invisible in html. --- auth.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.inc.php b/auth.inc.php index c8b6b31..772e256 100644 --- a/auth.inc.php +++ b/auth.inc.php @@ -16,7 +16,8 @@ class User function name() { - return @file_get_contents("{$this->dir}/name.txt"); + $name = @file_get_contents("{$this->dir}/name.txt"); + return htmlspecialchars(implode(' & ', explode("\n", $name))); } function admin() -- 2.30.0