aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2024-06-01 15:07:16 -0400
committeralyx <alyx@aleteoryx.me>2024-06-01 15:07:16 -0400
commitc1d1869c4080e6354a85c657477795ce2cfec540 (patch)
tree3464fdcb1157dd4851a838b4f5017af16d97d529
parentd87b07e52d050ca3d5bfcc6e59250ac1588bc6e1 (diff)
downloadvisitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.tar.gz
visitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.tar.bz2
visitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.zip
fix csv escaping issues
-rw-r--r--visitors.php2
1 files changed, 1 insertions, 1 deletions
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('<br />', explode("\n", htmlentities($_POST['message'])));
if (mb_strlen($_POST['name']) > 128)
return 'Name too long!';