Bug #81810
closed"," not possible in regex of config.linkVars
100%
Description
The TypoScript setting config.linkVars
contains Link parameters with a regex of possible values. The parameters are seperated by a ,
.
The implementation does explode the string by ,
to get an array of paramters and there values.
But this fails if the regex does containe a ,
character and ends up in broken params and values.
e.g. config.linkVars = country(/^[a-z]{2,3}$/),L(0-12)
is not possible as the string is also exploded at {2,3}
.
Instead of country(/^[a-z]{2,3}$/)
L(0-12)
the string is exploded tocountry(/^[a-z]{2
3}$/)
L(0-12)
Updated by Georg Ringer over 7 years ago
any idea how this could be avoided without having a new syntax?
Updated by Sascha Egerer over 7 years ago
Georg Ringer wrote:
any idea how this could be avoided without having a new syntax?
The "regex" or value is always surrounded by ()
, right? So we need to explode it with a regular expression that ,
inside of ()
are no split values.
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53478
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53478
Updated by Sascha Egerer over 7 years ago
- Sprint Focus changed from Remote Sprint to On Location Sprint
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53478
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53507
Updated by Sascha Egerer over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3f410c2c0eb13a27cb5006b699fd1558a86f3bf9.