]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixing HTTP Header LRDD parsing (sites in subdirectories need this)
authorJames Walker <walkah@walkah.net>
Mon, 22 Mar 2010 17:44:05 +0000 (13:44 -0400)
committerJames Walker <walkah@walkah.net>
Mon, 22 Mar 2010 17:45:13 +0000 (13:45 -0400)
plugins/OStatus/lib/discovery.php
plugins/OStatus/lib/linkheader.php

index 44fad62fbdc51d8d99c0239f19db321fad149444..7187c1f3e95ca122f704d52b4d92f6712e23dead 100644 (file)
@@ -195,7 +195,7 @@ class Discovery_LRDD_Link_Header implements Discovery_LRDD
             //            return false;
         }
 
-        return Discovery_LRDD_Link_Header::parseHeader($link_header);
+        return array(Discovery_LRDD_Link_Header::parseHeader($link_header));
     }
 
     protected static function parseHeader($header)
index afcd66d264d6be67b9337eeb6abddfd1d5cb6ea4..cd78d31cef6ce325c4e1959f1dae391c562e0855 100644 (file)
@@ -11,7 +11,7 @@ class LinkHeader
         preg_match('/^<[^>]+>/', $str, $uri_reference);
         //if (empty($uri_reference)) return;
 
-        $this->uri = trim($uri_reference[0], '<>');
+        $this->href = trim($uri_reference[0], '<>');
         $this->rel = array();
         $this->type = null;