mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-25 14:44:37 +01:00
Merge pull request #582 from ogjamesfranco/ogjamesfranco-patch-1
fix incorrect function call in body length check
This commit is contained in:
commit
07f998f9eb
2
post.php
2
post.php
@ -728,7 +728,7 @@ if (isset($_POST['delete'])) {
|
|||||||
error(sprintf($config['error']['toolong'], 'email'));
|
error(sprintf($config['error']['toolong'], 'email'));
|
||||||
if (mb_strlen($post['subject']) > 100)
|
if (mb_strlen($post['subject']) > 100)
|
||||||
error(sprintf($config['error']['toolong'], 'subject'));
|
error(sprintf($config['error']['toolong'], 'subject'));
|
||||||
if (!$mod && substr_count($post['body']) > $config['max_body'])
|
if (!$mod && mb_strlen($post['body']) > $config['max_body'])
|
||||||
error($config['error']['toolong_body']);
|
error($config['error']['toolong_body']);
|
||||||
if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines'])
|
if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines'])
|
||||||
error($config['error']['toomanylines']);
|
error($config['error']['toomanylines']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user