Insufficient filtering in javascript filter (#10001)
This commit is contained in:
parent
7e51ddd3b2
commit
9381fd02d8
3 changed files with 4 additions and 3 deletions
|
|
@ -15,6 +15,7 @@
|
|||
- fixed #9920: Survey: cannot add questions in IE
|
||||
- fixed #10449: Undefined template
|
||||
- fixed: WebGUI::Search epoch maximum range error (#10288)
|
||||
- fixed: Insufficient filtering in javascript filter (#10001)
|
||||
- fixed #10365: Head tags do not work "Use Packed Head Tags".
|
||||
- fixed #9927: Survey - verbatim
|
||||
- fixed #10352: Deleting a user does not clean up any address books
|
||||
|
|
|
|||
|
|
@ -588,14 +588,14 @@ sub definition {
|
|||
},
|
||||
filterCode =>{
|
||||
fieldType=>"filterContent",
|
||||
defaultValue=>'javascript',
|
||||
defaultValue=>'most',
|
||||
tab=>'security',
|
||||
label=>$i18n->get('filter code'),
|
||||
hoverHelp=>$i18n->get('filter code description'),
|
||||
},
|
||||
replyFilterCode =>{
|
||||
fieldType=>"filterContent",
|
||||
defaultValue=>'javascript',
|
||||
defaultValue=>'most',
|
||||
tab=>'security',
|
||||
label=>$i18n->get('reply filter code'),
|
||||
hoverHelp=>$i18n->get('reply filter code description'),
|
||||
|
|
|
|||
|
|
@ -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