[TYPO3-50-general] Strange behavior of $this->SERVER in Utility\Environment
Robert Lemke
robert at typo3.org
Mon Jan 26 19:34:14 CET 2009
Hi Christoph,
Am 23.01.2009 um 17:51 schrieb Christoph Blömer:
>>> I just found out that if I comment out the line:
>>> $_SERVER = new \F3\FLOW3\Utility\SuperGlobalReplacement('_SERVER',
>>> 'Please use the ' . __CLASS__ . ' object instead of accessing the
>>> superglobal directly.');
>>>
>>> The $this->SERVER variable is available in the child class of
>>> F3\FLOW3\Utility\Environment.
>>> Is that a intended behavior?
>>
>> yes, because the content of $_SERVER is not sanitized.
>>
>> If there's really a need for extending the Environment class we can
>> make that possible.
>> But I generally think that it's a bad idea in the first place.
I added a new method getRawServerEnvironment().
>>
> Is Environment the only class which can not be extended?
> Is there any FLOW3 method or class which gives me the incoming headers
> and bodies?
> Or can I just use fopen("php://input",r)?
>>
Yes, please.
Cheers,
robert
More information about the TYPO3-project-5_0-general
mailing list