aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-08 17:52:31 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-08 17:52:31 +0200
commit88d16b47a408640a4e46096b3633ca05a791a8af (patch)
tree5be3b5ed002393498d8ccdc421f29c2d947d3545 /phpBB/includes
parentfedd0ae7f35156cb5f929fc8067080a6ea153476 (diff)
parent2c6369c5d90134b761ffd1da86401deff571f636 (diff)
downloadforums-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/includes')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index d7509a1072..69f6ce9f7d 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -57,7 +57,6 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$address_list = array();
}
- $submit = (isset($_POST['post'])) ? true : false;
$preview = (isset($_POST['preview'])) ? true : false;
$save = (isset($_POST['save'])) ? true : false;
$load = (isset($_POST['load'])) ? true : false;
@@ -71,6 +70,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$refresh = isset($_POST['add_file']) || isset($_POST['delete_file']) || $save || $load
|| $remove_u || $remove_g || $add_to || $add_bcc;
+ $submit = isset($_POST['post']) && !$refresh && !$preview;
$action = ($delete && !$preview && !$refresh && $submit) ? 'delete' : $action;
$select_single = ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? false : true;