Actions
Bug #14950
closedprefixLocalAnchorsWithScript should allow arbitrary data between the tag's start and the href attribute
Start date:
2005-08-30
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
currently it only works if the link has this format:
<a href="#top">
but e.g. not with
<a class="something" href="#top">
function prefixLocalAnchorsWithScript() { $scriptPath = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL'))); $this->content = eregi_replace('(<(a|area)[[:space:]]+href=")(#[^"]*")','\1'.htmlspecialchars($scriptPath).'\3',$this->content); }
(issue imported from #M1419)
Files
Actions