Project

General

Profile

Bug #20142 » typo3core_bugfix_10629_trunk_v4.patch

Administrator Admin, 2010-03-21 04:45

View differences:

t3lib/class.t3lib_parsehtml_proc.php (copie de travail)
unset($attribArray_copy['rteerror']);
}
if (!count($attribArray_copy)) { // Only if href, target and class are the only attributes, we can alter the link!
// Quoting class and title attributes if they contain spaces
$attribArray['class'] = preg_match('/ /', $attribArray['class']) ? '"' . $attribArray['class'] . '"' : $attribArray['class'];
$attribArray['title'] = preg_match('/ /', $attribArray['title']) ? '"' . $attribArray['title'] . '"' : $attribArray['title'];
// Creating the TYPO3 pseudo-tag "<LINK>" for the link (includes href/url, target and class attributes):
$bTag='<link '.$info['url'].($info['query']?',0,'.$info['query']:'').($attribArray['target']?' '.$attribArray['target']:(($attribArray['class'] || $attribArray['title'])?' -':'')).($attribArray['class']?' '.$attribArray['class']:($attribArray['title']?' -':'')).($attribArray['title']?' "'.$attribArray['title'].'"':'').'>';
$bTag='<link '.$info['url'].($info['query']?',0,'.$info['query']:'').($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.
typo3/class.browse_links.php (copie de travail)
// CurrentUrl - the current link url must be passed around if it exists
if ($this->mode == 'wizard') {
$currentLinkParts = t3lib_div::trimExplode(' ',$this->P['currentValue']);
$currentLinkParts = t3lib_div::unQuoteFilenames($this->P['currentValue'], TRUE);
$initialCurUrlArray = array (
'href' => $currentLinkParts[0],
'target' => $currentLinkParts[1],
......
if (cur_title == "" && cur_class == "-") {
cur_class = "";
}
if (cur_class.indexOf(" ") != -1) {
cur_class = "\"" + cur_class + "\"";
}
if (cur_title.indexOf(" ") != -1) {
cur_title = "\"" + cur_title + "\"";
}
input = input + " " + cur_target + " " + cur_class + " " + cur_title;
field.value = input;
'.$update.'
(1-1/2)