diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-06-08 17:52:31 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-06-08 17:52:31 +0200 |
commit | 88d16b47a408640a4e46096b3633ca05a791a8af (patch) | |
tree | 5be3b5ed002393498d8ccdc421f29c2d947d3545 /phpBB/posting.php | |
parent | fedd0ae7f35156cb5f929fc8067080a6ea153476 (diff) | |
parent | 2c6369c5d90134b761ffd1da86401deff571f636 (diff) | |
download | forums-88d16b47a408640a4e46096b3633ca05a791a8af.tar forums-88d16b47a408640a4e46096b3633ca05a791a8af.tar.gz forums-88d16b47a408640a4e46096b3633ca05a791a8af.tar.bz2 forums-88d16b47a408640a4e46096b3633ca05a791a8af.tar.xz forums-88d16b47a408640a4e46096b3633ca05a791a8af.zip |
Merge pull request #3697 from Elsensee/ticket/13833-30x
[ticket/13833] Prevent flooding if type=submit doesn't exist
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 964b0f1f8b..13de8d5fd2 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -32,7 +32,6 @@ $forum_id = request_var('f', 0); $draft_id = request_var('d', 0); $lastclick = request_var('lastclick', 0); -$submit = (isset($_POST['post'])) ? true : false; $preview = (isset($_POST['preview'])) ? true : false; $save = (isset($_POST['save'])) ? true : false; $load = (isset($_POST['load'])) ? true : false; @@ -40,6 +39,7 @@ $delete = (isset($_POST['delete'])) ? true : false; $cancel = (isset($_POST['cancel']) && !isset($_POST['save'])) ? true : false; $refresh = (isset($_POST['add_file']) || isset($_POST['delete_file']) || isset($_POST['full_editor']) || isset($_POST['cancel_unglobalise']) || $save || $load) ? true : false; +$submit = isset($_POST['post']) && !$refresh && !$preview; $mode = ($delete && !$preview && !$refresh && $submit) ? 'delete' : request_var('mode', ''); $error = $post_data = array(); |