Update index.php

This commit is contained in:
cm-schl 2023-02-08 15:38:47 +01:00 committed by GitHub
parent 8b8b0fc7e4
commit a24dade801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ class LoginOverridePlugin extends \RainLoop\Plugins\AbstractPlugin
$sMapping = \trim($this->Config()->Get('plugin', 'email_mapping', ''));
if (!empty($sMapping)) {
$aList = \preg_split('/\\R/', $sMapping);
foreach ($aList as $line) {
foreach ($aList as $sLine) {
$aData = \explode(':', $sLine, 2);
if (!empty($aData[1]) && $sEmail === \trim($aData[0])) {
$sEmail = \trim($aData[1]);