forked from leftypol/leftypol
flood prevention
This commit is contained in:
parent
5c2b7dfe61
commit
d284b0d50d
3 changed files with 28 additions and 2 deletions
4
post.php
4
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).'…';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue