Bug #14950 ยป prefixLocalAnchors-a-with-params.diff
class.tslib_fe.php 2005-09-27 16:07:43.121586564 +0200 | ||
---|---|---|
*/
|
||
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);
|
||
$this->content = eregi_replace('(<(a|area)[^>]+href=")(#[^"]*")','\1'.htmlspecialchars($scriptPath).'\3',$this->content);
|
||
}
|
||