IPmaskList check is triggered in CLI mode (thanks to Tobias Rohrle)
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 17:22:22 +0000 (17:22 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 17:22:22 +0000 (17:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2433 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/init.php

index f2fbb94..d302bff 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 2007-07-16  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
        * Fixed bug #3834: possible abuse of t3lib_formmail
+       * IPmaskList check is triggered in CLI mode (thanks to Tobias Rohrle)
 
 2007-07-06  Michael Stucki  <michael@typo3.org>
 
index 6cbc0c9..4a95c75 100755 (executable)
@@ -188,7 +188,7 @@ if ($TYPO3_CONF_VARS['BE']['adminOnly'] < 0)        {
 // **********************
 // Check IP
 // **********************
-if (trim($TYPO3_CONF_VARS['BE']['IPmaskList']))        {
+if (trim($TYPO3_CONF_VARS['BE']['IPmaskList']) && !(defined('TYPO3_cliMode') && TYPO3_cliMode))        {
        if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $TYPO3_CONF_VARS['BE']['IPmaskList']))      {
                header('Status: 404 Not Found');        // Send Not Found header - if the webserver can make use of it...
                header('Location: http://');    // Just point us away from here...