Project

General

Profile

Actions

Bug #77028

closed

handleMagicQuotesGpc() leads to exception

Added by André Wuttig almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-07-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If we want to call an extbase controller which has a "\" inside, because we want to call a SubController which inherits from some other controller than the handleMagicQuotesGpc()`which calls addSlashesOnArray() adds a slash to much and this leads to an exception during bootstrap->run().

We comment out the two lines in SystemEnvironmentBuilder

    /**
     * Compatibility layer for magic quotes
     *
     * @return void
     */
    static protected function handleMagicQuotesGpc() {
        if (!get_magic_quotes_gpc()) {
//            \TYPO3\CMS\Core\Utility\GeneralUtility::addSlashesOnArray($_GET);
//            \TYPO3\CMS\Core\Utility\GeneralUtility::addSlashesOnArray($_POST);
            $GLOBALS['HTTP_GET_VARS'] = $_GET;
            $GLOBALS['HTTP_POST_VARS'] = $_POST;
        }
    }
Actions #1

Updated by Mathias Brodala almost 8 years ago

  • Status changed from New to Closed

This has been fixed with TYPO3 7.6 and newer.

Since TYPO3 6.2 only receives high priority bugfixes by now, a fix is basically impossible since it also bears the danger of breaking a lot of installations.

Actions

Also available in: Atom PDF