Project

General

Profile

Bug #22253 ยป plainMailEnc.patch

Administrator Admin, 2010-03-08 17:49

View differences:

t3lib/class.t3lib_userauthgroup.php (working copy)
$email_body.= date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'],$testRows['tstamp']).': '.@sprintf($testRows['details'],''.$theData[0],''.$theData[1],''.$theData[2]);
$email_body.= chr(10);
}
mail( $email,
t3lib_div::plainMailEncoded( $email,
$subject,
$email_body,
'From: TYPO3 Login WARNING<>'
typo3/sysext/install/mod/class.tx_install.php (working copy)
if ($wEmail) {
$subject="Install Tool Login at '".$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']."'";
$email_body="There has been a Install Tool login at TYPO3 site '".$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']."' (".t3lib_div::getIndpEnv('HTTP_HOST').") from remote address '".t3lib_div::getIndpEnv('REMOTE_ADDR')."' (".t3lib_div::getIndpEnv('REMOTE_HOST').')';
mail($wEmail,
t3lib_div::plainMailEncoded($wEmail,
$subject,
$email_body,
'From: TYPO3 Install Tool WARNING <>'
......
$email_body="There has been an Install Tool login attempt at TYPO3 site '".$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']."' (".t3lib_div::getIndpEnv('HTTP_HOST').").
The MD5 hash of the last 5 characters of the password tried was '".substr(md5($p), -5)."'
REMOTE_ADDR was '".t3lib_div::getIndpEnv('REMOTE_ADDR')."' (".t3lib_div::getIndpEnv('REMOTE_HOST').')';
mail($wEmail,
t3lib_div::plainMailEncoded($wEmail,
$subject,
$email_body,
'From: TYPO3 Install Tool WARNING <>'
    (1-1/1)