Issue Bug Closed

#67013felogin setting plugin.tx_felogin_pi1.redirectMode = refererDomains causes an exception

Mike Wanush 05/18/15, 18:43 updated 10/23/17, 21:48

Description

Line 692 (of the current git version) uses the following regular expression:

if (preg_match('/(^|\\.)/' . $d . '$', $redirect_domain)) {

As $d in this case is a domain string, it causes an exception:

#1: PHP Warning: preg_match(): Unknown modifier 'w' in ...

The line should be changed to

if (preg_match('/(^|\\.)' . $d . '$/', $redirect_domain)) {

See attached felogin.patch.

Reviews 2