[TYPO3-core] RFC: fix for bug #2592
Franz Holzinger
franz at fholzinger.com
Mon Feb 20 13:30:56 CET 2006
Hello Wolfgang,
> We would have to add a new method "setExternalJumpUrl" and rename
> "checkJumpUrl" to "checkJumpUrlReferer" (as it does nothing else than
> that) and change some other files where "checkJumpUrl" is used.
>
>--------
> /**
> * Sets the jumpurl for page type "External URL"
> *
> * @return void
> */
> function setExternalJumpUrl() {
> if ($extUrl = $this->sys_page->getExtURL($this->page, $this->config['config']['disablePageExternalUrl'])) {
> $this->jumpurl = $extUrl;
> }
> }
>
> /**
> * Checks the jumpurl referer if required
> *
> * @return void
> */
> function checkJumpUrlReferer() {
> if (strcmp($this->jumpurl,'') && !$this->TYPO3_CONF_VARS['SYS']['doNotCheckReferer']) {
> $referer = parse_url(t3lib_div::getIndpEnv('HTTP_REFERER'));
> if (!( $referer['host'] == t3lib_div::getIndpEnv('TYPO3_HOST_ONLY'))) {
> unset($this->jumpurl);
> }
> }
> }
>
>
this is fine now.
+1
Greets,
Franz
More information about the TYPO3-team-core
mailing list