Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
0ed0b50c
Commit
0ed0b50c
authored
1 year ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #16392. Reevaluate sanitize class for each store.
parent
cf5c4083
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!592
Develop
,
!591
Fixes #16392. Reevaluate sanitize class for each store.
Pipeline
#9668
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Classes/Core/Store/Store.php
+9
-7
9 additions, 7 deletions
extension/Classes/Core/Store/Store.php
with
9 additions
and
7 deletions
extension/Classes/Core/Store/Store.php
+
9
−
7
View file @
0ed0b50c
...
@@ -603,18 +603,20 @@ class Store {
...
@@ -603,18 +603,20 @@ class Store {
// no sanitizeClass specified: take predefined (if exist) or default.
// no sanitizeClass specified: take predefined (if exist) or default.
if
(
$sanitizeClass
===
''
||
$sanitizeClass
===
null
)
{
if
(
$sanitizeClass
===
''
||
$sanitizeClass
===
null
)
{
$sanitizeDefault
=
SANITIZE_DEFAULT_OF_STORE
[
$store
];
$sanitizeClassFinal
=
self
::
$sanitizeClass
[
$key
]
??
SANITIZE_DEFAULT_OF_STORE
[
$store
];
$sanitizeClass
=
isset
(
self
::
$sanitizeClass
[
$key
])
?
self
::
$sanitizeClass
[
$key
]
:
$sanitizeDefault
;
}
else
{
$sanitizeClassFinal
=
$sanitizeClass
;
}
}
$rawVal
=
isset
(
self
::
$raw
[
$store
][
$finalKey
])
?
self
::
$raw
[
$store
][
$finalKey
]
:
null
;
if
(
self
::
$sanitizeStore
[
$store
]
&&
$sanitizeClass
!=
''
)
{
$rawVal
=
self
::
$raw
[
$store
][
$finalKey
]
??
null
;
if
(
$sanitizeClass
==
SANITIZE_ALLOW_PATTERN
)
{
if
(
self
::
$sanitizeStore
[
$store
]
&&
$sanitizeClassFinal
!=
''
)
{
if
(
$sanitizeClassFinal
==
SANITIZE_ALLOW_PATTERN
)
{
// We do not have any pattern at this point. For those who be affected, they already checked earlier. So set 'no check'
// We do not have any pattern at this point. For those who be affected, they already checked earlier. So set 'no check'
$sanitizeClass
=
SANITIZE_ALLOW_ALL
;
$sanitizeClass
Final
=
SANITIZE_ALLOW_ALL
;
}
}
return
Sanitize
::
sanitize
(
$rawVal
,
$sanitizeClass
,
''
,
''
,
SANITIZE_EMPTY_STRING
,
''
,
$typeMessageViolate
);
return
Sanitize
::
sanitize
(
$rawVal
,
$sanitizeClass
Final
,
''
,
''
,
SANITIZE_EMPTY_STRING
,
''
,
$typeMessageViolate
);
}
else
{
}
else
{
if
(
$store
==
STORE_SIP
&&
(
substr
(
$key
,
0
,
$len
)
==
SIP_PREFIX_BASE64
))
{
if
(
$store
==
STORE_SIP
&&
(
substr
(
$key
,
0
,
$len
)
==
SIP_PREFIX_BASE64
))
{
$rawVal
=
base64_decode
(
$rawVal
);
$rawVal
=
base64_decode
(
$rawVal
);
...
...
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