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

docs/NEWS
include/functions_trackbacks.inc.php

index 9e54d12284ed74b75e7ac6f67e1b03f2b9467c45..cf8ff8cf640c127a9a48fa246642d15857d0e7e4 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 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.
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']   = '';