Bug #19522 ยป t3lib_parsehtml_prefixRelPath_ignore_anchor_and_marker.diff
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;
|