summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-08-27 12:11:34 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-08-27 12:11:34 +1000
commitaa02cffb93fecaa871528ab88d25b03c6715fab2 (patch)
treecdcbd27744725b46291f6f529e69c32fd5e5b896 /post.php
parent881ea101628ec03a199b87dafd6a560a69e6901e (diff)
increased subject max length to 100 characters
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 8420c6a0..3c1bbaa3 100644
--- a/post.php
+++ b/post.php
@@ -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'));