Skip Menu |

This queue is for tickets about the MIME-Lite-HTML CPAN distribution.

Report information
The Basics
Id: 40164
Status: resolved
Priority: 0/
Queue: MIME-Lite-HTML

People
Owner: Nobody in particular
Requestors: f.gouverne [...] inter.nl.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.23
Fixed in: (no value)



Subject: removing script code often fails
The new option for removing script code uses the following regular expression: $gabarit=~s/<script([^>]*)>[^<]*<\/script>//iegmx; However, this regexp does not allow the '<' character in the script code and therefore this will fail for most javascript code like: <script language=JavaScript type=text/javascript> <!-- // '<' character here!!! //code here --> </script> or: <script language=JavaScript type=text/javascript> for(i=0; i<10; i++) // '<' character here!!! do_something(); </script> So it really should be: $gabarit=~s/<script([^>]*)>[\s\S]*?<\/script>//iegmx;
Fixed in 1.24