diff options
author | alyx <alyx@aleteoryx.me> | 2024-06-01 15:07:16 -0400 |
---|---|---|
committer | alyx <alyx@aleteoryx.me> | 2024-06-01 15:07:16 -0400 |
commit | c1d1869c4080e6354a85c657477795ce2cfec540 (patch) | |
tree | 3464fdcb1157dd4851a838b4f5017af16d97d529 /visitors.php | |
parent | d87b07e52d050ca3d5bfcc6e59250ac1588bc6e1 (diff) | |
download | visitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.tar.gz visitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.tar.bz2 visitors_dot_php-c1d1869c4080e6354a85c657477795ce2cfec540.zip |
fix csv escaping issues
Diffstat (limited to 'visitors.php')
-rw-r--r-- | visitors.php | 2 |
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!'; |