* Patch pingback receiving function to use proper Regexp, thanks to
dhaun from the forums
This commit is contained in:
@ -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
|
||||
|
@ -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'] = '';
|
||||
|
Reference in New Issue
Block a user