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
a4cc9aa8
Commit
a4cc9aa8
authored
Oct 26, 2004
by
Steven Wittens
Browse files
#12155
: use defined constant rather than integer in file.inc.
parent
1cbf2f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
a4cc9aa8
...
...
@@ -398,7 +398,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
=
0
)
{
function
file_save_data
(
$data
,
$dest
,
$replace
=
FILE_EXISTS_RENAME
)
{
if
(
!
valid_input_data
(
$data
))
{
watchdog
(
'error'
,
t
(
'Possible exploit abuse: invalid data.'
));
drupal_set_message
(
t
(
'File upload failed: invalid data.'
),
'error'
);
...
...
Write
Preview
Supports
Markdown
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