Project

General

Profile

Actions

Bug #19339

closed

TypoScript Object Browser interprets HTML Tags in comments

Added by Stefano Kowalke about 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-09-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In TypoScript you could add comments to your code. Comments begin with # or // and could contain HTML tags like <table>,... . The TypoScript Object Browser display this comments (if selected) and interpret the HTML tags.

As one result of interpreting HTML the design of the TypoScript Object Browser crashs like in the screenshot.

In the screenshot the error occur at line
'[externalBlocks] = table, blockquote, ol,ul // makelinks > # Processing and blocks separately'
because the comment contains a <table> and a <blockquote> Tag -> '// makelinks > # Processing <table> and <blockquote> blocks separately'
which both was interprets by TSOB.

After this error the brackets and the value of a TS property was displayed in red.

Follow this steps to reproduce:

  • Go to template module and choose a template
  • Open [lib].[parseFunc_RTE].[externalBlocks]
  • Be sure that [lib].[parseFunc_RTE].[externalBlocks] comes from typo3/sysext/css_styled_content/static/setup.txt

and containing at line 94: # Processing <table> and <blockquote> blocks separately

(issue imported from #M9360)


Files

class.t3lib_tsparser_ext.php.diff (824 Bytes) class.t3lib_tsparser_ext.php.diff Administrator Admin, 2008-09-16 20:31
TSOB_before.jpg (36 KB) TSOB_before.jpg Administrator Admin, 2008-09-16 20:32
TSOB_after.jpg (41.6 KB) TSOB_after.jpg Administrator Admin, 2008-09-16 20:32

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #19265: Not properly escaped HTML chars for comments in objectbrowserClosedOliver Hader2008-08-29

Actions

No data to display

Actions

Also available in: Atom PDF