summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/post.php b/post.php
index d2306ca1..66247f4f 100644
--- a/post.php
+++ b/post.php
@@ -143,6 +143,10 @@
markup($post['body']);
+ // Check for a flood
+ if(checkFlood($post))
+ error(ERROR_FLOOD);
+
if($post['has_file']) {
// Just trim the filename if it's too long
if(strlen($post['filename']) > 30) $post['filename'] = substr($post['filename'], 0, 27).'…';