Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Merge requests
!25
fix: allow TextFieldSanitizer process array values
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix: allow TextFieldSanitizer process array values
feature/sanitize-array
into
feature/strong-typing
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Krzysztof Dyszczyk
requested to merge
feature/sanitize-array
into
feature/strong-typing
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
0
0
Merge request reports
Compare
feature/strong-typing
feature/strong-typing (base)
and
latest version
latest version
8266e545
1 commit,
3 years ago
2 files
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Sanitizer/TextFieldSanitizer.php
+
3
−
0
View file @ 8266e545
Edit in single-file editor
Open in Web IDE
Show full file
@@ -6,6 +6,9 @@ use WPDesk\Forms\Sanitizer;
class
TextFieldSanitizer
implements
Sanitizer
{
public
function
sanitize
(
$value
)
{
if
(
is_array
(
$value
)
)
{
return
array_map
(
'sanitize_text_field'
,
$value
);
}
return
sanitize_text_field
(
$value
);
}
Loading