Feature #14870 » 1294_branch4-3_v2.diff
t3lib/class.t3lib_parsehtml.php (working copy) | ||
---|---|---|
*/
|
||
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,param',$content);
|
||
foreach ($parts as $k => $v) {
|
||
if ($k%2) {
|
||
$params = $this->get_tag_attributes($v,1);
|
||
... | ... | |
$somethingDone=1;
|
||
}
|
||
break;
|
||
// value attribute
|
||
case 'param':
|
||
$test = $params[0]['name'];
|
||
if ($test && $test === 'movie') {
|
||
if ($params[0]['value']) {
|
||
$params[0]['value'] = $this->prefixRelPath($prefix, $params[0]['value'], $suffix);
|
||
$somethingDone = 1;
|
||
}
|
||
}
|
||
break;
|
||
}
|
||
if ($somethingDone) {
|
||
$tagParts = preg_split('/\s+/s',$v,2);
|