Révision 01f36513
Ajouté par Assos Assos il y a environ 6 ans
drupal7/modules/file/file.module | ||
---|---|---|
239 | 239 |
$form_parents = func_get_args(); |
240 | 240 |
$form_build_id = (string) array_pop($form_parents); |
241 | 241 |
|
242 |
// Sanitize form parents before using them. |
|
243 |
$form_parents = array_filter($form_parents, 'element_child'); |
|
244 |
|
|
242 | 245 |
if (empty($_POST['form_build_id']) || $form_build_id != $_POST['form_build_id']) { |
243 | 246 |
// Invalid request. |
244 | 247 |
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'); |
Formats disponibles : Unified diff
Weekly update of contrib modules