Project

General

Profile

Bug #19643 ยป class.t3lib_parsehtml.php.diff

Administrator Admin, 2008-11-25 16:50

View differences:

class.t3lib_parsehtml.php 2008-11-25 16:38:23.000000000 +0100
*/
function prefixResourcePath($main_prefix,$content,$alternatives=array(),$suffix='') {
$parts = $this->splitTags('embed,td,table,body,img,input,form,link,script,a',$content);
$parts = $this->splitTags('embed,td,table,body,img,input,form,link,script,a,area',$content);
foreach ($parts as $k => $v) {
if ($k%2) {
$params = $this->get_tag_attributes($v,1);
......
break;
case 'link':
case 'a':
case 'area':
$src = $params[0]['href'];
if ($src) {
$params[0]['href'] = $this->prefixRelPath($prefix,$params[0]['href'],$suffix);
    (1-1/1)