increased subject max length to 100 characters

This commit is contained in:
Savetheinternet committed 2011-08-27 12:11:34 +10:00
1 parent 881ea10162
commit aa02cffb93
6 files changed
+12 -6

No files matched your search

+1 -1
View File
@@ -313,7 +313,7 @@
// Check string lengths
if(strlen($post['name']) > 50) error(sprintf($config['error']['toolong'], 'name'));
if(strlen($post['email']) > 40) error(sprintf($config['error']['toolong'], 'email'));
if(strlen($post['subject']) > 40) error(sprintf($config['error']['toolong'], 'subject'));
if(strlen($post['subject']) > 100) error(sprintf($config['error']['toolong'], 'subject'));
if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolong_body']);
if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshort_body']);
if(strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password'));