From 0e15d15f9b1c7ef4171960d070619e3fb1e23857 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 3 Aug 2005 00:30:40 +0000 Subject: [PATCH] Fixes #1541 git-svn-id: http://svn.automattic.com/wordpress/trunk@2742 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmlrpc.php b/xmlrpc.php index b17a8de85..35af5ff4b 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1243,6 +1243,9 @@ class wp_xmlrpc_server extends IXR_Server { } } + if ( empty($context) ) // URL pattern not found + return new IXR_Error(17, 'The source URI does not contain a link to the target URI, and so cannot be used as a source.'); + $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom); $context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';