From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 15:25:38 +0000 (+0200) Subject: login/list: join multiple names by ampersands X-Git-Tag: v3.5~17 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/2241b24c0686b655819683bede887c52be152ecd login/list: join multiple names by ampersands Encoded newlines are invisible in html. --- 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()