Opened 5 years ago

Last modified 5 years ago

#1596 new defect

TransformerInnerHTML.js hangs browser in raw image data "img" tag

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords: TransformerInnerHTML.js, img tag, regexp,
Cc: ejucovy

Description

I am using Xinha to allow rich text editing in my web application. When the editor component gets an "img" tag with raw base64 encoded image data in it (see template file for html img data that cause the problem) the TransformerInnerHTML.js script hangs on the "cleanHTML" method. Probably the regular expression match and replace takes too long for these type of use cases. Problem is reproducible in Xinha 0.95. I haven't tried other Xinha versions.

Attachments (1)

raw_img_data.zip (243.9 KB) - added by guest 5 years ago.
Raw image data that cause the problem.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by guest

Raw image data that cause the problem.

comment:1 Changed 5 years ago by ejucovy

  • Cc ejucovy added
Note: See TracTickets for help on using tickets.