Add api_get_cidreq()

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent bfce9ec4ce
commit b4a0e30f44
  1. 2
      main/dropbox/dropbox_download.php
  2. 6
      main/dropbox/dropbox_functions.inc.php
  3. 4
      main/dropbox/dropbox_init.inc.php

@ -55,7 +55,7 @@ if (isset($_GET['cat_id']) &&
$files_to_download[] = $row['id'];
}
if (!is_array($files_to_download) || empty($files_to_download)) {
header('location: index.php?view='.Security::remove_XSS($_GET['sent_received']).'&error=ErrorNoFilesInFolder');
header('Location: index.php?'.api_get_cidreq().'&view='.Security::remove_XSS($_GET['sent_received']).'&error=ErrorNoFilesInFolder');
exit;
}
zip_download($files_to_download);

@ -446,7 +446,11 @@ function display_addcategory_form($category_name = '', $id = '', $action)
$text = get_lang('CreateCategory');
}
$form = new FormValidator('add_new_category', 'post', api_get_self().'?view='.Security::remove_XSS($_GET['view']));
$form = new FormValidator(
'add_new_category',
'post',
api_get_self().'?'.api_get_cidreq().'&view='.Security::remove_XSS($_GET['view'])
);
$form->addElement('header', $title);
if (isset($id) && $id != '') {

@ -292,14 +292,14 @@ if (!$view || $view == 'received') {
} elseif ($view = 'sent') {
$part = 'sent';
} else {
header('location: index.php?view='.$view.'&error=Error');
header('location: index.php?'.api_get_cidreq().'&view='.$view.'&error=Error');
exit;
}
if (($postAction == 'download_received' || $postAction == 'download_sent') and !$_POST['store_feedback']) {
$checked_file_ids = $_POST['id'];
if (!is_array($checked_file_ids) || count($checked_file_ids) == 0) {
header('location: index.php?view='.$view.'&error=CheckAtLeastOneFile');
header('Location: index.php?'.api_get_cidreq().'&view='.$view.'&error=CheckAtLeastOneFile');
} else {
handle_multiple_actions();
}

Loading…
Cancel
Save