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

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Mar 16 15:36:23 CET 2008


Christian Kuhn schrieb:
> 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.

Committed this no-brainer for REMOTE_ADDR (also a few lines below for 
HTTP_HOST).

Masi


More information about the TYPO3-team-core mailing list