Fixed bug #17541: cookies are not required in CLI mode / cookieSecure blocks cli
authorTolleiv Nietsch <info@tolleiv.de>
Mon, 14 Feb 2011 11:26:10 +0000 (11:26 +0000)
committerTolleiv Nietsch <info@tolleiv.de>
Mon, 14 Feb 2011 11:26:10 +0000 (11:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10460 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/init.php

index a7e0996..c2fa813 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-14  Tolleiv Nietsch  <typo3@tolleiv.de>
+
+       * Fixed bug #17541: cookies are not required in CLI mode / cookieSecure blocks cli
+
 2011-02-13  Steffen Gebert  <steffen.gebert@typo3.org>
 
        * Added Test #17495: Add Unit Tests for t3lib_div::resolveBackPath()
index b1a8fdd..aa1f048 100644 (file)
@@ -420,6 +420,9 @@ $BE_USER->warningEmail = $TYPO3_CONF_VARS['BE']['warning_email_addr'];
 $BE_USER->lockIP = $TYPO3_CONF_VARS['BE']['lockIP'];
 $BE_USER->auth_timeout_field = intval($TYPO3_CONF_VARS['BE']['sessionTimeout']);
 $BE_USER->OS = TYPO3_OS;
+if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
+       $BE_USER->dontSetCookie = TRUE;
+}
 $BE_USER->start();                     // Object is initialized
 $BE_USER->checkCLIuser();
 $BE_USER->backendCheckLogin(); // Checking if there's a user logged in