[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>
Sat, 10 Sep 2011 08:32:18 +0000 (10:32 +0200)
user_plaintext::renderImage uses ',' as char to
explode links but TYPO3 switched to a LF

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

index 4a2a67a..02cb686 100644 (file)
@@ -486,7 +486,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) {