Bug #19574 » typo3_9741_4.2.3.patch
typo3_src/typo3/sysext/cms/tslib/class.tslib_fe.php 2008-11-11 13:19:06.000000000 +0100 | ||
---|---|---|
* @return void Works directly on $this->content
|
||
*/
|
||
function prefixLocalAnchorsWithScript() {
|
||
$scriptPath = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
|
||
$scriptPath = $GLOBALS['TSFE']->absRefPrefix . substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
|
||
$this->content = preg_replace('/(<(a|area).*?href=")(#[^"]*")/i','${1}' . htmlspecialchars($scriptPath) . '${3}',$this->content);
|
||
}
|
||
typo3_src/typo3/sysext/cms/tslib/class.tslib_pagegen.php 2008-11-11 13:19:26.000000000 +0100 | ||
---|---|---|
if (!$type) $type = 'text/javascript';
|
||
$GLOBALS['TSFE']->content.='
|
||
<script src="'.htmlspecialchars($ss).'" type="'.htmlspecialchars($type).'"></script>';
|
||
<script src="' . htmlspecialchars($GLOBALS['TSFE']->absRefPrefix . $ss) . '" type="' . htmlspecialchars($type) . '"></script>';
|
||
}
|
||
}
|
||
}
|