Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d54ef6db
Commit
d54ef6db
authored
Nov 03, 2004
by
Steven Wittens
Browse files
Rest of
#12167
(respect input check bypass permission)
parent
b94f9af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
d54ef6db
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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