Make WordPress Core


Ignore:
Timestamp:
04/10/2013 04:29:00 PM (13 years ago)
Author:
SergeyBiryukov
Message:

Remove \s from regex in pingback_ping() to avoid UTF-8 issues. props tenpura. fixes #24001.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r23818 r23952  
    53955395        // Work around bug in strip_tags():
    53965396        $linea = str_replace('<!DOC', '<DOC', $linea);
    5397         $linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces
     5397        $linea = preg_replace( '/[\r\n\t ]+/', ' ', $linea ); // normalize spaces
    53985398        $linea = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea );
    53995399
Note: See TracChangeset for help on using the changeset viewer.