diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-18 17:11:28 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-18 17:11:28 +1100 |
| commit | d284b0d50dabef2627ba9e38291f07e736dd0721 (patch) | |
| tree | 7c2fbaf5adf877b7b4bf473b41d13f792c9b4b78 /post.php | |
| parent | 5c2b7dfe61c1a702fd7cbb1bbcec6a036055bff9 (diff) | |
flood prevention
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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).'…'; |
