From c1d1869c4080e6354a85c657477795ce2cfec540 Mon Sep 17 00:00:00 2001 From: alyx Date: Sat, 1 Jun 2024 15:07:16 -0400 Subject: fix csv escaping issues --- visitors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visitors.php b/visitors.php index b4648ca..941800a 100644 --- a/visitors.php +++ b/visitors.php @@ -530,7 +530,7 @@ function cleanup_post() { } } $_POST['name'] = htmlentities($_POST['name']); - $_POST['message'] = htmlentities($_POST['message']); + $_POST['message'] = implode('
', explode("\n", htmlentities($_POST['message']))); if (mb_strlen($_POST['name']) > 128) return 'Name too long!'; -- cgit v1.2.3-70-g09d2