Issue Bug Closed

#15913HTML cleaner corrupts Java Script code

old_andre 03/28/06, 08:53 updated 03/13/07, 15:33

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.