Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
86a348c3
Commit
86a348c3
authored
Jan 15, 2016
by
Carsten Rose
Browse files
Sanatize.php: alnumx - added space, / ( ) as valid characters.
parent
0b953a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
qfq/helper/Sanatize.php
View file @
86a348c3
...
@@ -40,7 +40,8 @@ class Sanatize {
...
@@ -40,7 +40,8 @@ class Sanatize {
case
SANATIZE_ALLOW_ALNUMX
:
case
SANATIZE_ALLOW_ALNUMX
:
// replace ALNUMX valid characters, which are not part of ctype_alnum, by valid ctype_alnum characters, to fake ctype_alnum
// replace ALNUMX valid characters, which are not part of ctype_alnum, by valid ctype_alnum characters, to fake ctype_alnum
if
(
!
ctype_alnum
(
str_replace
(
array
(
'@'
,
'-'
,
'_'
,
'.'
,
','
,
';'
),
'a'
,
$value
)))
// definetely forbidden: ' " \ % $
if
(
!
ctype_alnum
(
str_replace
(
array
(
'@'
,
'-'
,
'_'
,
'.'
,
','
,
';'
,
' '
,
'/'
,
'('
,
')'
),
'a'
,
$value
)))
$value
=
''
;
$value
=
''
;
break
;
break
;
...
...
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