]> git.mjollnir.org Git - s9y.git/commitdiff
Patch by Kris
authorgarvinhicking <garvinhicking>
Thu, 3 Nov 2005 13:23:15 +0000 (13:23 +0000)
committergarvinhicking <garvinhicking>
Thu, 3 Nov 2005 13:23:15 +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 7fa13ba320ecec54d5f00dbf718e79ad74493307..830c14eff11a659cc34dfe20e5d0497db6e9ab16 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,8 @@
 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)