[TYPO3-core] RFC: fix for bug #2592
Wolfgang Klinger
wolfgang at stufenlos.net
Tue Feb 21 09:55:47 CET 2006
*hiya!*
On Tue, 21 Feb 2006, Stanislas Rolland wrote the following:
> I think the above line should (also) be removed.
Right.
> Then +1 (tested both in the context of External URL page type and of
> direct mail click statistics).
I found another problem:
If no referer is set the condition will always match,
so I added "isset($referer['host'])" to the method below.
Any problems you see with that?
-------
function checkJumpUrlReferer() {
if (strcmp($this->jumpurl,'') && !$this->TYPO3_CONF_VARS['SYS']['doNotCheckReferer']) {
$referer = parse_url(t3lib_div::getIndpEnv('HTTP_REFERER'));
if (isset($referer['host']) && !($referer['host'] == t3lib_div::getIndpEnv('TYPO3_HOST_ONLY'))) {
unset($this->jumpurl);
}
}
}
-------
bye
Wolfgang
More information about the TYPO3-team-core
mailing list