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.
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'] = '';