forked from leftypol/leftypol
Increased field limits
This commit is contained in:
parent
2b2d2ca6ed
commit
fab3618afe
3 changed files with 5 additions and 5 deletions
2
post.php
2
post.php
|
@ -213,7 +213,7 @@
|
|||
|
||||
// Check string lengths
|
||||
if(strlen($post['name']) > 50) error(sprintf($config['error']['toolong'], 'name'));
|
||||
if(strlen($post['email']) > 30) error(sprintf($config['error']['toolong'], 'email'));
|
||||
if(strlen($post['email']) > 40) error(sprintf($config['error']['toolong'], 'email'));
|
||||
if(strlen($post['subject']) > 40) error(sprintf($config['error']['toolong'], 'subject'));
|
||||
if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolongbody']);
|
||||
if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshortbody']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue