Project

General

Profile

Actions

Bug #15913

closed

HTML cleaner corrupts Java Script code

Added by old_andre about 18 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-03-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A Java Script expression like

for(var i=0;i<allItems.length;i++){
...
}

may be "cleaned" by method t3lib_parsehtml->HTMLcleaner() [Line 617].

This happens due to insufficient detection of tags. Solved this by changing lines 627 to 632. Fixed version of file attached.

(issue imported from #M3013)


Files

class.t3lib_parsehtml.php (53.7 KB) class.t3lib_parsehtml.php Administrator Admin, 2006-03-28 08:53

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #14150: t3lib_parsehtml: tags in comments are handled (incorrectly)ClosedChris topher2004-05-11

Actions
Is duplicate of TYPO3 Core - Bug #14988: xhtml_cleaning corrupts javascript in HTML-comment from extensionClosed2005-09-22

Actions
Actions #1

Updated by Franz Holzinger over 17 years ago

This is a duplicate of
http://bugs.typo3.org/view.php?id=1477

I have fixed this already, too. Test my patch (bug no.1477) and give me a response.

Actions #2

Updated by Michael Stucki over 17 years ago

Duplicate of #14988

Actions

Also available in: Atom PDF