Drupal: harden team email list RPC wrapper

This commit is contained in:
Oliver Bock 2016-11-09 12:36:51 +00:00
parent eed66cc916
commit e2f0f1b9fd
1 changed files with 1 additions and 1 deletions

View File

@ -1099,7 +1099,7 @@ function boinccore_team_email_list() {
$account_key = !empty($_POST['account_key']) ? $_POST['account_key'] : $_GET['account_key'];
$show_xml = !empty($_POST['xml']) ? $_POST['xml'] : $_GET['xml'];
$admin_request = FALSE;
if ($boincteam_id) {
if ($boincteam_id && is_numeric($boincteam_id)) {
if ($account_key) {
// See if this is a team admin
db_set_active('boinc');