Replace faulty regex. Props tenpura. fixes #4820

git-svn-id: http://svn.automattic.com/wordpress/trunk@6127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-18 16:42:25 +00:00
parent c352f29893
commit 39152aff25
1 changed files with 3 additions and 2 deletions

View File

@ -1840,7 +1840,8 @@ class wp_xmlrpc_server extends IXR_Server {
$title = ''; $title = '';
$pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom); $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
$pagelinkedto = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedto); $pagelinkedto = str_replace('&', '&', $pagelinkedto);
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
$error_code = -1; $error_code = -1;
@ -1966,7 +1967,7 @@ class wp_xmlrpc_server extends IXR_Server {
if ( empty($context) ) // Link to target not found if ( empty($context) ) // Link to target not found
return new IXR_Error(17, __('The source URL does not contain a link to the target URL, and so cannot be used as a source.')); return new IXR_Error(17, __('The source URL does not contain a link to the target URL, and so cannot be used as a source.'));
$pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom); $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
$context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]'; $context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';
$original_pagelinkedfrom = $pagelinkedfrom; $original_pagelinkedfrom = $pagelinkedfrom;