From: garvinhicking Date: Mon, 12 Feb 2007 12:13:58 +0000 (+0000) Subject: * Patch pingback receiving function to use proper Regexp, thanks to X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e03e515525155bb01dc903592b8d0351289aed9f;p=s9y.git * Patch pingback receiving function to use proper Regexp, thanks to dhaun from the forums --- diff --git a/docs/NEWS b/docs/NEWS index 9e54d12..cf8ff8c 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.1.1 () ------------------------------------------------------------------------ + * Patch pingback receiving function to use proper Regexp, thanks to + dhaun from the forums + * Make categories sidebar plugin properly return evaluated categories list to plugin_categories.tpl template. Currently, a hidden structure would only be displayed when not using custom template. diff --git a/include/functions_trackbacks.inc.php b/include/functions_trackbacks.inc.php index a553bfa..3c6a911 100644 --- a/include/functions_trackbacks.inc.php +++ b/include/functions_trackbacks.inc.php @@ -316,7 +316,7 @@ function add_trackback ($id, $title, $url, $name, $excerpt) { function add_pingback ($id, $postdata) { global $serendipity; - if(preg_match('@\s*\s*pingback.ping\s*\s*\s*\s*\s*([^<])*\s*\s*\s*\s*\s*([^<])*\s*\s*\s*\s*@i', $postdata, $matches)) { + if(preg_match('@\s*\s*pingback.ping\s*\s*\s*\s*\s*([^<]*)\s*\s*\s*\s*\s*([^<]*)\s*\s*\s*\s*@i', $postdata, $matches)) { $remote = $matches[1]; $local = $matches[2]; $comment['title'] = '';