Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
t3o
my.typo3.org
Commits
2b04b1b3
Commit
2b04b1b3
authored
Jul 14, 2018
by
Thomas Löffler
Browse files
Change preg_match() for lowercase validation
parent
af193abc
Pipeline
#4952
passed with stages
in 6 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/t3omy/Classes/Domain/Validator/ServersideValidator.php
View file @
2b04b1b3
...
...
@@ -134,7 +134,7 @@ class ServersideValidator extends \In2code\Femanager\Domain\Validator\Serverside
*/
protected
function
checkLowerCharsValidation
(
$user
,
$value
,
$validationSetting
,
$fieldName
)
{
if
(
preg_match
(
'/[A-Z]/'
,
$value
)
!==
false
)
{
if
(
preg_match
(
'/[A-Z]/'
,
$value
)
!==
0
)
{
$this
->
addError
(
ucfirst
(
$fieldName
)
.
' may not contain upper case characters!'
,
$fieldName
);
$this
->
isValid
=
false
;
}
...
...
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