1

Topic: Error in regex (/common/messaging.php)

After editing an event i got an error message like this:

"Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u"

Solution was to change line 60 and line 88 of /common/messaging.php from

"} elseif (preg_match("~^[\w\-.\s\u00C0-\u017F]{2,}$~u",$recipient)) { //username"

to

"} elseif (preg_match("~^[\w\-.\s\x{00C0}-\x{017F}]{2,}$~u",$recipient)) { //username"

Re: Error in regex (/common/messaging.php)

Hi there,

Thanks very much for reporting this problem. I've changed the code and the problem will be fixed in the next LuxCal release.

Roel