Make WordPress Core

Ticket #48849: 48849.patch

File 48849.patch, 619 bytes (added by dkarfa, 5 years ago)
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    68936893                // Remove all script and style tags including their content.
    68946894                $remote_source = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $remote_source );
    68956895                // Just keep the tag we need.
    6896                 $remote_source = strip_tags( $remote_source, '<a>' );
     6896                $remote_source = strip_tags( $remote_source, ['a'] );
    68976897
    68986898                $p = explode( "\n\n", $remote_source );
    68996899