1
0

* Patch pingback receiving function to use proper Regexp, thanks to

dhaun from the forums
This commit is contained in:
Garvin Hicking
2007-02-12 12:12:31 +00:00
parent 1d48d31115
commit 9dcb2a1881
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -316,7 +316,7 @@ function add_trackback ($id, $title, $url, $name, $excerpt) {
function add_pingback ($id, $postdata) {
global $serendipity;
if(preg_match('@<methodcall>\s*<methodName>\s*pingback.ping\s*</methodName>\s*<params>\s*<param>\s*<value>\s*<string>([^<])*</string>\s*</value>\s*</param>\s*<param>\s*<value>\s*<string>([^<])*</string>\s*</value>\s*</param>\s*</params>\s*</methodCall>@i', $postdata, $matches)) {
if(preg_match('@<methodcall>\s*<methodName>\s*pingback.ping\s*</methodName>\s*<params>\s*<param>\s*<value>\s*<string>([^<]*)</string>\s*</value>\s*</param>\s*<param>\s*<value>\s*<string>([^<]*)</string>\s*</value>\s*</param>\s*</params>\s*</methodCall>@i', $postdata, $matches)) {
$remote = $matches[1];
$local = $matches[2];
$comment['title'] = '';