Project

General

Profile

Bug #14950 ยป prefixLocalAnchors-a-with-params.diff

Administrator Admin, 2005-09-27 16:10

View differences:

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);
}
    (1-1/1)