Project

General

Profile

Actions

Bug #26737

closed

Click-to-enlarge produces Link with target=""

Added by anybody no-lastname-given almost 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-05-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you use with Typo3 4.5.2 the option "Click to enlarge" there is created a link with the attribute <a target="" etc.>, although the template is configured for xhtml_trans and xhtml_cleaning.
Another description of the problem is found at http://www.typo3forum.net/forum/typo3-4-x-fragen-probleme/50191-xhtml-there-no-attribute-target.html#post166212 (German).

Actions #1

Updated by Yves Poersch almost 13 years ago

Caroli wrote:

If you use with Typo3 4.5.2 the option "Click to enlarge" there is created a link with the attribute <a target="" etc.>, although the template is configured for xhtml_trans and xhtml_cleaning.
Another description of the problem is found at http://www.typo3forum.net/forum/typo3-4-x-fragen-probleme/50191-xhtml-there-no-attribute-target.html#post166212 (German).

Hello guys,

I think the bug is at sysext/cms/tslib/class.tslib_content.php @ LINE: 1459 to 1471 (TYPO3 4.5.2)
Orginal lines:
// Create TARGET-attribute only if the right doctype is used
if (t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) {
$target = isset($conf['target.'])
? $this-stdWrap($conf['target'], $conf['target.'])
: $conf['target'];
if(!$target) {
$target = sprintf(' target="%s"', $target);
} else {
$target = ' target="thePicture"';
}
} else {
$target = '';
}
Solution:
- I think the "if(!$target) {" is wrong. There have to be something like "if ($target) {".

Another BUG in these lines:
$target = isset($conf['target.'])
? $this-stdWrap($conf['target'], $conf['target.'])
: $conf['target'];

Solution:
- this is not correct "? $this-stdWrap". That have to be "? $this->stdWrap".

BR
Yves Poersch

Actions #2

Updated by Chris topher almost 13 years ago

Yves Poersch wrote:

Another BUG in these lines:
$target = isset($conf['target.'])
? $this-stdWrap($conf['target'], $conf['target.'])
: $conf['target'];

Solution:
- this is not correct "? $this-stdWrap". That have to be "? $this->stdWrap".

Absolutely! Please open another issue for that one - as it is obvious this can be fixed right away then.

Actions #3

Updated by Yves Poersch almost 13 years ago

Christopher wrote:

Yves Poersch wrote:

Another BUG in these lines:
$target = isset($conf['target.'])
? $this-stdWrap($conf['target'], $conf['target.'])
: $conf['target'];

Solution:
- this is not correct "? $this-stdWrap". That have to be "? $this->stdWrap".

Absolutely! Please open another issue for that one - as it is obvious this can be fixed right away then.

I create a new issue for that:
http://forge.typo3.org/issues/26757

Actions #4

Updated by Alexander Opitz almost 10 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.4)?

Actions #5

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF