aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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!';