]> git.mjollnir.org Git - s9y.git/commitdiff
* Patch pingback receiving function to use proper Regexp, thanks to
authorgarvinhicking <garvinhicking>
Mon, 12 Feb 2007 12:12:31 +0000 (12:12 +0000)
committergarvinhicking <garvinhicking>
Mon, 12 Feb 2007 12:12:31 +0000 (12:12 +0000)
      dhaun from the forums

docs/NEWS
include/functions_trackbacks.inc.php

index 96d518c32d68c5c2d81a0f90d22b2c5dc18e0620..113421219fcc985c27bff9227352d0d3ea29a537 100644 (file)
--- 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
index a553bfa0b5c41b9cb20dedb40a7d9c45d8a3768d..3c6a9113d03fff244bc9dc690a0135264a9433f8 100644 (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']   = '';