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

git-svn-id: https://develop.svn.wordpress.org/trunk@23952 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-04-10 16:29:00 +00:00
parent 84fb704172
commit a198eac988

View File

@ -5394,7 +5394,7 @@ class wp_xmlrpc_server extends IXR_Server {
// Work around bug in strip_tags():
$linea = str_replace('<!DOC', '<DOC', $linea);
$linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces
$linea = preg_replace( '/[\r\n\t ]+/', ' ', $linea ); // normalize spaces
$linea = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea );
preg_match('|<title>([^<]*?)</title>|is', $linea, $matchtitle);