Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3e36c786
Commit
3e36c786
authored
Nov 02, 2004
by
Steven Wittens
Browse files
#12167
: Respect 'bypass input data check' permission in file.inc.
parent
f69437de
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
3e36c786
...
...
@@ -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.'
));
drupal_set_message
(
t
(
'File upload failed: invalid data.'
),
'error'
);
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment