summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-11 23:02:30 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-11 23:02:30 +1100
commitc34ea2e3af01d9a688fb14b3da550aa96615f312 (patch)
tree8560552c1f92ce13452cca79172799491ff9b69a /post.php
parent0346862645aa0b9a8ba0f0d929b336b08ff8fcf4 (diff)
a Fixed delete by IP, plus a bunch of small stuff
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 62260e1b..38599222 100644
--- a/post.php
+++ b/post.php
@@ -221,7 +221,7 @@
if(strlen($post['name']) > 50) error(sprintf(ERROR_TOOLONG, 'name'));
if(strlen($post['email']) > 30) error(sprintf(ERROR_TOOLONG, 'email'));
if(strlen($post['subject']) > 40) error(sprintf(ERROR_TOOLONG, 'subject'));
- if(strlen($post['body']) > MAX_BODY) error(ERROR_TOOLONGBODY);
+ if(!$mod && strlen($post['body']) > MAX_BODY) error(ERROR_TOOLONGBODY);
if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error(ERROR_TOOSHORTBODY);
if(strlen($post['password']) > 20) error(sprintf(ERROR_TOOLONG, 'password'));