summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/post.php b/post.php
index 4e3a1a9f..6855fe14 100644
--- a/post.php
+++ b/post.php
@@ -357,6 +357,13 @@ if (isset($_POST['delete'])) {
$post['thumb'] = $board['dir'] . $config['dir']['thumb'] . $post['file_id'] . '.' . ($config['thumb_ext'] ? $config['thumb_ext'] : $post['extension']);
}
+ if ($config['strip_combining_chars']) {
+ $post['name'] = strip_combining_chars($post['name']);
+ $post['email'] = strip_combining_chars($post['email']);
+ $post['subject'] = strip_combining_chars($post['name']);
+ $post['body'] = strip_combining_chars($post['body']);
+ }
+
// Check string lengths
if (mb_strlen($post['name']) > 35)
error(sprintf($config['error']['toolong'], 'name'));
@@ -368,7 +375,7 @@ if (isset($_POST['delete'])) {
error($config['error']['toolong_body']);
if (mb_strlen($post['password']) > 20)
error(sprintf($config['error']['toolong'], 'password'));
-
+
wordfilters($post['body']);
$post['body_nomarkup'] = $post['body'];