[BUGFIX] Typo in Install Tool
authorGeorg Ringer <mail@ringerge.org>
Wed, 4 Jan 2012 17:37:18 +0000 (18:37 +0100)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 8 Jan 2012 15:23:35 +0000 (16:23 +0100)
Fix a simple typo in mail of Install Tool.

Change-Id: Ibe8b8003cbf6d2b98210bc22bf5e2a5678e0e137
Resolves: #32970
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7699
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/install/mod/class.tx_install.php

index 47ee0d4..e9f6d6c 100644 (file)
@@ -321,14 +321,14 @@ class tx_install extends t3lib_install {
        function checkPassword() {
                $p = t3lib_div::_GP('password');
 
-               if ($p && md5($p)==$GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']) {
+               if ($p && md5($p) === $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']) {
                        $this->session->setAuthorized();
 
                                // Sending warning email
                        $wEmail = $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'];
                        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').')';
+                               $subject = 'Install Tool Login at "' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '"';
+                               $email_body = 'There has been an 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,
                                        $subject,
                                        $email_body,