Project

General

Profile

Feature #15736 » bug_2714_v4.diff

Administrator Admin, 2007-04-20 14:25

View differences:

t3lib/class.t3lib_parsehtml_proc.php (Arbeitskopie)
$info['url']=$info['relUrl'];
$info['type']='anchor';
} elseif (!trim($uP['path']) || !strcmp($uP['path'],'index.php')) {
$pp = explode('id=',$uP['query']);
$id = trim($pp[1]);
if ($id) {
if (preg_match('/id=([^&]+)$/', $uP['query'], $pp)) {
$id = trim($pp[1]);
$info['pageid']=$id;
$info['cElement']=$uP['fragment'];
$info['url']=$id.($info['cElement']?'#'.$info['cElement']:'');
$info['type']='page';
} else {
// If the site contains additional parameters (&), treat it like an external URL
unset($info['relScriptPath']);
unset($info['relUrl']);
}
} else {
$info['url']=$info['relUrl'];
(2-2/3)