Skip to content

Commit

Permalink
Update default args for script sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jun 17, 2024
1 parent 158e37d commit ed5e31d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/AMP/Sanitization.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ protected function get_sanitizers(): array {
}

$sanitizers = [
AMP_Script_Sanitizer::class => [],
AMP_Script_Sanitizer::class => [
'sanitize_js_scripts' => true,
],
AMP_Style_Sanitizer::class => [

/*
Expand Down

0 comments on commit ed5e31d

Please sign in to comment.