Insufficient filtering in javascript filter (#10001)
This commit is contained in:
parent
7e51ddd3b2
commit
9381fd02d8
3 changed files with 4 additions and 3 deletions
|
|
@ -142,7 +142,7 @@ sub filter {
|
|||
$html =~ s/ / /ixsg ;
|
||||
WebGUI::Macro::negate(\$html);
|
||||
} elsif ($type eq "javascript") {
|
||||
$html =~ s/\<script.*?\/script\>//ixsg;
|
||||
$html =~ s/\<\s*script.*?\/script\s*\>//ixsg;
|
||||
$html =~ s/(href="??)javascript\:.*?\)/$1removed/ixsg;
|
||||
$html =~ s/onClick/removed/ixsg;
|
||||
$html =~ s/onDblClick/removed/ixsg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue