diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-09 21:13:44 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-09 21:13:44 +1000 |
| commit | 033491f84f9e58308954b049d3574e8791c6c3c2 (patch) | |
| tree | f5311fb408ba0191c65377697a539e1fa90d5a82 /post.php | |
| parent | 874b8cbf002e9d8bf0ff39671e1501165016320a (diff) | |
increase character limit on board URI, title and subtitle
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -18,9 +18,7 @@ if(isset($_POST['delete'])) { // Delete - if( !isset($_POST['board']) || - !isset($_POST['password']) - ) + if(!isset($_POST['board'], $_POST['password'])) error($config['error']['bot']); $password = &$_POST['password']; @@ -82,10 +80,7 @@ header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); } elseif(isset($_POST['report'])) { - if( !isset($_POST['board']) || - !isset($_POST['password']) || - !isset($_POST['reason']) - ) + if(!isset($_POST['board'], $_POST['password'], $_POST['reason'])) error($config['error']['bot']); $report = Array(); @@ -142,10 +137,8 @@ header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); } elseif(isset($_POST['post'])) { - if( !isset($_POST['subject']) || - !isset($_POST['body']) || - !isset($_POST['board']) - ) error($config['error']['bot']); + if(!isset($_POST['subject'], $_POST['body'], $_POST['board'])) + error($config['error']['bot']); if(!isset($_POST['name'])) $_POST['name'] = $config['anonymous']; |
