Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
3fb6f14a
Commit
3fb6f14a
authored
Dec 3, 2007
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
#197267
by ufku: fix copy-pasted incorrect documentation on two file functions
parent
80e26c14
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/file.inc
+2
-2
2 additions, 2 deletions
includes/file.inc
with
2 additions
and
2 deletions
includes/file.inc
+
2
−
2
View file @
3fb6f14a
...
@@ -614,7 +614,7 @@ function file_validate_name_length($file) {
...
@@ -614,7 +614,7 @@ function file_validate_name_length($file) {
* @param $extensions
* @param $extensions
* A string with a space separated
* A string with a space separated
* @return
* @return
* An array. If the file
name is too long
, it will contain an error message.
* An array. If the file
extension is not allowed
, it will contain an error message.
*/
*/
function
file_validate_extensions
(
$file
,
$extensions
)
{
function
file_validate_extensions
(
$file
,
$extensions
)
{
global
$user
;
global
$user
;
...
@@ -644,7 +644,7 @@ function file_validate_extensions($file, $extensions) {
...
@@ -644,7 +644,7 @@ function file_validate_extensions($file, $extensions) {
* An integer specifying the maximum number of bytes the user is allowed. Zero
* An integer specifying the maximum number of bytes the user is allowed. Zero
* indicates that no limit should be enforced.
* indicates that no limit should be enforced.
* @return
* @return
* An array. If the file
name is too long
, it will contain an error message.
* An array. If the file
size exceeds limits
, it will contain an error message.
*/
*/
function
file_validate_size
(
$file
,
$file_limit
=
0
,
$user_limit
=
0
)
{
function
file_validate_size
(
$file
,
$file_limit
=
0
,
$user_limit
=
0
)
{
global
$user
;
global
$user
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment