Actions
Bug #23145
closedRealUrl-Decoding does not work because t3lib_div::getIndpEnv("SCRIPT_NAME") return a wrong value on Apache 2.2 / Debian Lenny
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-07-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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)
Actions