[BUGFIX] Wrong char for explodes of links
authorGeorg Ringer <mail@ringerge.org>
Fri, 9 Sep 2011 15:49:50 +0000 (17:49 +0200)
committerGeorg Ringer <mail@ringerge.org>
Thu, 8 Dec 2011 14:07:31 +0000 (15:07 +0100)
user_plaintext::renderImage uses ',' as char to
explode links but TYPO3 switched to a LF

Change-Id: I91b27467a40b4c984d26eee6a50e4206ff8b2c2f
Resolves: #29597
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/7116
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/cms/tslib/media/scripts/plaintextLib.inc

index 3b37313..6732100 100644 (file)
@@ -522,7 +522,7 @@ class user_plaintext {
         */
        function renderImages($str,$links,$caption,$upload_path='uploads/pics/')        {
                $images = explode(',',$str);
-               $linksArr = explode(',',$links);
+               $linksArr = explode(LF, $links);
                $lines=array();
                if ($this->conf['images.']['header'])   {$lines[]=$this->getString($this->conf['images.']['header']);}
                foreach ($images as $k => $file) {