Bug #33107
fe_adminLib.inc is incompatible with absRefPrefix
| Status: | New | Start date: | 2012-01-11 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | Estimated time: | 1.00 hour | |
| Votes: | 0 |
Description
Since no one is willing to even answer me, regarding issue #22832 for the TYPO3 core, i'm trying it here, since direct_mail_subscription now features its own copy of fe_adminLib.inc:
###FORM_URL### is filled by typoLink_URL() while ###THIS_URL### is filled by t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR').
Combining both will result in a faulty URL if you use - for example - just a slash as absRefPrefix. Its impossible to correct this issue by just changing the Template without hardcoding any part of the URL or switching to a hardcoded path (not using RealURL or similar Extensions) and Build the Path like "###THIS_URL###index.php?id=###THIS_ID###"
Solution is switching TYPO3_REQUEST_DIR to TYPO3_REQUEST_HOST - but this will probably break backwards compatiblity and probably create issues with TYPO3 installations running in a subdirectory.
Another solution is adding a second value ###THIS_HOST### and fill it with TYPO3_REQUEST_HOST.
Add this after Line 217 in fe_adminLib.inc
$this->markerArray['###THIS_HOST###'] = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST'));
Optionaly: substituteMarkerArray or fillInMarkerArray could be extended to parse TYPO3-Enviroment-Variables by default. So if you use ###TYPO3_REQUEST_HOST### in a Template, it will be magicaly replaced by the value from t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR').