diff options
| author | czaks <marcin@6irc.net> | 2013-07-28 20:48:51 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-28 20:51:43 -0400 |
| commit | d11e9d752e1b1107469ca363b33648bbcdac9f60 (patch) | |
| tree | 5ffc954c74150cc1a3597a0af6d4f515cb3c9413 /post.php | |
| parent | 26b6dfb126fd3522cac3594fc7064b899465b856 (diff) | |
| parent | bd8bd3c02e6cb8e130058649e646a8c8071d3386 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -359,6 +359,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['subject']); + $post['body'] = strip_combining_chars($post['body']); + } + // Check string lengths if (mb_strlen($post['name']) > 35) error(sprintf($config['error']['toolong'], 'name')); @@ -370,7 +377,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']; |
