Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/media/media.module
248 248
  $form_parents = func_get_args();
249 249
  $form_build_id = (string) array_pop($form_parents);
250 250

  
251
  // Sanitize form parents before using them.
252
  $form_parents = array_filter($form_parents, 'element_child');
253

  
251 254
  if (empty($_POST['form_build_id']) || $form_build_id != $_POST['form_build_id']) {
252 255
    // Invalid request.
253 256
    drupal_set_message(t('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (@size) that this server supports.', array('@size' => format_size(file_upload_max_size()))), 'error');

Also available in: Unified diff