diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-11-03 00:47:27 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-11-03 00:47:27 +0000 |
commit | d54ef6db841a32f8fea557ba826811f51e315947 (patch) | |
tree | ffde2dbdc6c234f8f477597f9bf896bde9a713f6 /includes/file.inc | |
parent | b94f9af24f1dff4439051787adb6d2a60ed291ad (diff) | |
download | brdo-d54ef6db841a32f8fea557ba826811f51e315947.tar.gz brdo-d54ef6db841a32f8fea557ba826811f51e315947.tar.bz2 |
Rest of #12167 (respect input check bypass permission)
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 4410fe349..9bb05f3b9 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -399,7 +399,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) { * @return A string containing the resulting filename or 0 on error */ function file_save_data($data, $dest, $replace = FILE_EXISTS_RENAME) { - if (!valid_input_data($data)) { + if (!user_access('bypass input data check') && !valid_input_data($data)) { watchdog('error', t('Possible exploit abuse: invalid data.')); drupal_set_message(t('File upload failed: invalid data.'), 'error'); return 0; |