From: garvinhicking Date: Mon, 12 Feb 2007 12:12:31 +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=f8cadd00564efdf59f5ecd0c8ac4f6cb9c3de867;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 96d518c..1134212 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -60,6 +60,9 @@ Version 1.2 () 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 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'] = '';