Commit 7770faaf authored by Nikola Stojiljkovic's avatar Nikola Stojiljkovic Committed by Tymoteusz Motylewski
Browse files

[BUGFIX] Filter out space char on client-side from alpha/num/alphanum/alphanum_x fields

Resolves: #76125
Releases: master
Change-Id: I9d542a7a1a380a32f39f1c61f7cb4cf2d4b316b5
Reviewed-on: https://review.typo3.org/48066

Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
parent 7d3166eb
......@@ -402,7 +402,7 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($, FormEngine) {
special = 0;
break;
}
if (alpha || num || theChar == ' ' || special) {
if (alpha || num || special) {
newString += theChar;
}
}
......
......@@ -97,7 +97,7 @@ function evalFunc_caseSwitch(type,inVal) {
case "alpha": num=0; special=0; break;
case "num": alpha=0; special=0; break;
}
if (alpha || num || theChar==' ' || special) {
if (alpha || num || special) {
newString+=theChar;
}
}
......
......@@ -69,13 +69,13 @@ class ElementsBasicCest
'input_4 eval=alpha' => [
[
'Kasper = TYPO3',
'Kasper TYPO',
'KasperTYPO',
],
],
'input_5 eval=alphanum' => [
[
'Kasper = TYPO3',
'Kasper TYPO3',
'KasperTYPO3',
],
],
'input_6 eval=date' => [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment