[TYPO3-core] RFC: #7843: $TYPO3_CONF_VARS['SYS']['reverseProxyHeaderMultiValue'] = 'first'; returns php error

Christian Kuhn lolli at schwarzbu.ch
Thu Mar 13 00:07:10 CET 2008


This is an SVN patch request.

Type: Bugfix, nobrainer

Branch: TYPO3_4-2

Bugtracker references:
http://bugs.typo3.org/view.php?id=7843

Problem:
The new HTTP_X_FORWARDED_FOR feature from #7397 (commited to 4.2-branch) 
returns a php error if 
$TYPO3_CONF_VARS['SYS']['reverseProxyHeaderMultiValue'] = 'first'; is used.

Solution:
To shift first (bottom) element from an array, array_shift() instead of 
array_unshift() should be used.

Notes:
Beside this issue my reverse proxy setup works with 4.2. Great patch!

Thanks
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007843.diff
Type: text/x-patch
Size: 626 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080313/9c765d2e/attachment-0001.bin 


More information about the TYPO3-team-core mailing list