Issue Bug Closed

#52059Preg_match in redirectMode "refererDomains"

Tim Wendisch 09/17/13, 10:06 updated 10/02/18, 12:10

Description

My TYPO3 Log gives me the following warning:
Core: Error handler (FE): PHP Warning: preg_match(): Unknown modifier ‘/’ in /var/www/typo3_src-4.7.15/typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php line 646

This line contains the following expression:
if (preg_match(‘/^http://([[:alnum:]._-]+)//’, $url, $match)) {

I think this should be changed to:
if (preg_match(‘/^http:\/\/([[:alnum:]._-]+)\//’, $url, $match)) {

Greetings Tim Wendisch

Reviews 3