Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
file_entity
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
file_entity
Commits
3143121b
Commit
3143121b
authored
1 year ago
by
Joseph Olstad
Committed by
Joseph Olstad
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3360213
by vgutekunst, joseph.olstad: Deprecated function: fnmatch()
parent
9477bc9a
Branches
Branches containing commit
Tags
8.x-2.0-rc1
Tags containing commit
1 merge request
!13
Draft: Automated Project Update Bot fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
file_entity.module
+4
-0
4 additions, 0 deletions
file_entity.module
with
4 additions
and
0 deletions
file_entity.module
+
4
−
0
View file @
3143121b
...
...
@@ -360,6 +360,10 @@ function file_entity_match_mimetypes($needle, $haystack) {
foreach
(
$haystack
as
$mimetype
)
{
foreach
(
$needle
as
$search
)
{
if
(
is_null
(
$search
)
||
is_null
(
$mimetype
))
{
// Passing null to parameter of type string is deprecated.
continue
;
}
if
(
fnmatch
(
$search
,
$mimetype
)
||
fnmatch
(
$mimetype
,
$search
))
{
return
TRUE
;
}
...
...
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