Univention Bugzilla – Bug 47830
Add parameters to user template options
Last modified: 2021-05-03 21:49:05 CEST
With Bug #47580 a new option to remove non-alphanumeric characters was introduced into the user templates. In the current implementation you can define characters in an UCR variable that are to be excluded from removal. It would be pretty handy to allow a parametrization of this option to define exclude characters also on a per use level. This could be helpful if special characters are to be removed say in the email address but should be allowed in the display name. It could look like that for example: <firstname>.<lastname:alphanum['`^],trim,umlauts>@domain.de Of course other delimiters than the square brackets could be used as well. The challenge would be to devise a correct regular expression that can handle this type of notation (e.g a , or : in the list of excluded characters) There may be application for other (future) options as well to receive parameters.