Fixed bug #15128: RTE creates <link> tag incorrectly if there is a non-empty title
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 19 Jul 2010 08:00:56 +0000 (08:00 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 19 Jul 2010 08:00:56 +0000 (08:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8238 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml_proc.php

index ddcb250..e852da1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-07-19  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #15130: Backend search does not find non-latin1 characters
+       * Fixed bug #15128: RTE creates <link> tag incorrectly if there is a non-empty title
 
 2010-07-18  Steffen Kamper  <info@sk-typo3.de>
 
index ba13b04..5dc29d8 100644 (file)
@@ -654,7 +654,7 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
                                                // Creating the TYPO3 pseudo-tag "<LINK>" for the link (includes href/url, target and class attributes):
                                                // If external attribute is set, keep the href unchanged
                                        $href = $attribArray['external'] ? $attribArray['href'] : $info['url'].($info['query']?',0,'.$info['query']:'');
-                                       $bTag='<link '. $href . ($attribArray['target']?' '.$attribArray['target']:(($attribArray['class'] || $attribArray['title'])?' -':'')).($attribArray['class']?' '.$attribArray['class']:($attribArray['title']?' -':'')).($attribArray['title']?' '.$attribArray['title']:'').'>';
+                                       $bTag='<link '. $href . ($attribArray['target']?' '.$attribArray['target']:(($attribArray['class'] || $attribArray['title'])?' -':'')).($attribArray['class']?' '.$attribArray['class']:($attribArray['title']?' -':'')).($attribArray['title']?' "' . $attribArray['title'] . '"':'').'>';
                                        $eTag='</link>';
                                        $blockSplit[$k] = $bTag.$this->TS_links_db($this->removeFirstAndLastTag($blockSplit[$k])).$eTag;
                                } else {        // ... otherwise store the link as a-tag.