#14950prefixLocalAnchorsWithScript should allow arbitrary data between the tag's start and the href attribute
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.