Issue Bug Closed

#81810"," not possible in regex of config.linkVars

Sascha Egerer 07/06/17, 11:08 updated 10/02/18, 10:58

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 to
@country(/^[a-z]{2@
@3}$/)@
@L(0-12)@

Reviews 2