Project

General

Profile

Actions

Bug #67013

closed

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

Added by Mike Wanush about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
felogin
Target version:
Start date:
2015-05-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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.


Files

felogin.patch (518 Bytes) felogin.patch Mike Wanush, 2015-05-18 18:43

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19728: ereg* is deprecated in PHP 5.3 alpha3ClosedKarsten Dambekalns2008-12-21

Actions
Actions

Also available in: Atom PDF