]> git.mjollnir.org Git - s9y.git/commitdiff
patch by kris
authorgarvinhicking <garvinhicking>
Thu, 3 Nov 2005 13:23:05 +0000 (13:23 +0000)
committergarvinhicking <garvinhicking>
Thu, 3 Nov 2005 13:23:05 +0000 (13:23 +0000)
bundled-libs/Onyx/RSS.php
docs/NEWS

index 11c2cb6b4e01ca65903b36b93232fa7feaa0b59f..2db05c724d77662b5fbf6b95a4c99aae1c958cf5 100644 (file)
@@ -129,12 +129,12 @@ class ONYX_RSS
          clearstatcache();
          
          require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
-         $req = &new HTTP_Request($uri);
+         $req = &new HTTP_Request($uri, array('allowRedirects' => true, 'maxRedirects' => 5));
          $res = $req->sendRequest();
         
          if (PEAR::isError($res) || $req->getResponseCode() != '200')
          {
-            $this->raiseError((__LINE__-2), ONYX_ERR_INVALID_URI);
+            $this->raiseError((__LINE__-2), ONYX_ERR_INVALID_URI . ' (#' . $req->getResponseCode() . ')');
             return false;
          }
 
index 00abd4c6564f6da863245d9de73948bb0f09f8e5..b9153ccc5a0fb96d06093777f2dd8214ffcdd010 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -10,6 +10,8 @@ Version 1.0 ()
 Version 0.9.1 ()
 ------------------------------------------------------------------------
 
+    * Make Onyx RSS parser interpret HTTP redirecty. (Kristian Köhntopp)
+
     * Added blogger.com importer by Jawish Hameed
 
     * Fix visitor tracking in statistics plugin (garvinhicking)