Issue Bug Closed

#23145RealUrl-Decoding does not work because t3lib_div::getIndpEnv("SCRIPT_NAME") return a wrong value on Apache 2.2 / Debian Lenny

Johannes 07/10/10, 20:17 updated 03/06/14, 09:14

Description

RealUrl encodes URLs, but does not decode them, because $this->pObj->siteScript in tx_realurl::decodeSpURL() returns an empty string. That is because t3lib_div::getIndpEnv(“SCRIPT_NAME”) returns the requested url instead of the location of index.php.

In my special case, it works with
$retVal = substr($_SERVER[‘SCRIPT_FILENAME’],strlen($_SERVER [‘DOCUMENT_ROOT’]) – 1);

The same error already existed in Typo3 v4.2.1 on another Debian Lenny system.

My environment:
Typo3 v4.4.0
RealURL v1.8.1
Debian Lenny
Apache v2.2.9
PHP v5.2.6
(issue imported from #M15074)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.