Project

General

Profile

Bug #19522 ยป t3lib_parsehtml_prefixRelPath_ignore_anchor_and_marker.diff

Administrator Admin, 2008-10-29 16:53

View differences:

class.t3lib_parsehtml.php (Arbeitskopie)
* @access private
*/
function prefixRelPath($prefix,$srcVal,$suffix='') {
if( $srcVal[0] == '#' )
{ // only anchor or marker, do not mess with it!
return $srcVal;
}
$pU = parse_url($srcVal);
if (!$pU['scheme'] && substr($srcVal, 0, 1)!='/') { // If not an absolute URL.
$srcVal = $prefix.$srcVal.$suffix;
    (1-1/1)