Temper fictioneer_see_some_evil()
Still best function name.
This commit is contained in:
parent
822af3097c
commit
65f0227e21
@ -1194,7 +1194,7 @@ function fictioneer_see_some_evil( $data, $postarr, $unsanitized_postarr ) {
|
|||||||
$results = [];
|
$results = [];
|
||||||
|
|
||||||
// Check for JavaScript
|
// Check for JavaScript
|
||||||
$pattern = '/<script[^>]*>.*?<\/script>|on[a-z]+=/si';
|
$pattern = '/<script[^>]*\bon[a-z]+=[^>]*>.*?<\/script>|<script[^>]*>.*?<\/script>/si';
|
||||||
|
|
||||||
if ( preg_match_all( $pattern, $content, $matches ) ) {
|
if ( preg_match_all( $pattern, $content, $matches ) ) {
|
||||||
$results['js'] = $matches[0];
|
$results['js'] = $matches[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user