#12167: Respect 'bypass input data check' permission in file.inc.
parent
f69437dead
commit
3e36c7864b
|
@ -355,7 +355,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!valid_input_data($file)) {
|
if (!user_access('bypass input data check') && !valid_input_data($file)) {
|
||||||
watchdog('error', t('Possible exploit abuse: invalid data.'));
|
watchdog('error', t('Possible exploit abuse: invalid data.'));
|
||||||
drupal_set_message(t('File upload failed: invalid data.'), 'error');
|
drupal_set_message(t('File upload failed: invalid data.'), 'error');
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue