Projet

Général

Profil

Révision f842d52a

Ajouté par Julien Enselme il y a presque 10 ans

Update to 7.28

Voir les différences:

drupal7/modules/file/file.module
510 510
          $callback($element, $input, $form_state);
511 511
        }
512 512
      }
513
      // Load file if the FID has changed to confirm it exists.
514
      if (isset($input['fid']) && $file = file_load($input['fid'])) {
513
      // Load file and check access if the FID has changed, to confirm it
514
      // exists and that the current user has access to it.
515
      if (isset($input['fid']) && ($file = file_load($input['fid'])) && file_download_access($file->uri)) {
515 516
        $fid = $file->fid;
516 517
      }
517 518
    }

Formats disponibles : Unified diff