Fixed bug #1294: movie param of flash object not processed by prefixResourcePath...
authorBenni Mack <benni.mack@typo3.org>
Sun, 6 Jun 2010 09:27:26 +0000 (09:27 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 6 Jun 2010 09:27:26 +0000 (09:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7813 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml.php

index 7f849e8..aff017a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-06-06  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #1294: movie param of flash object not processed by prefixResourcePath(Thanks to Jigal van Hemert)
        * Fixed bug #14629: Copyright Year in Page Source is still wrong (Thanks to Jigal van Hemert)
 
 2010-06-06  Christian Kuhn  <lolli@schwarzbu.ch>
index a6f839e..85d77c0 100644 (file)
@@ -965,7 +965,7 @@ class t3lib_parsehtml       {
         */
        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);
@@ -1011,6 +1011,16 @@ class t3lib_parsehtml    {
                                                        $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);