Garvin Hicking at BerliOS | 3 Nov 2005 14:23
Picon

r642 - in branches/0.9: bundled-libs/Onyx docs

Author: garvinhicking
Date: 2005-11-03 14:23:15 +0100 (Thu, 03 Nov 2005)
New Revision: 642

Modified:
   branches/0.9/bundled-libs/Onyx/RSS.php
   branches/0.9/docs/NEWS
Log:
Patch by Kris

Modified: branches/0.9/bundled-libs/Onyx/RSS.php
===================================================================
--- branches/0.9/bundled-libs/Onyx/RSS.php	2005-11-03 13:23:05 UTC (rev 641)
+++ branches/0.9/bundled-libs/Onyx/RSS.php	2005-11-03 13:23:15 UTC (rev 642)
 <at>  <at>  -129,12 +129,12  <at>  <at> 
          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;
          }

Modified: branches/0.9/docs/NEWS
(Continue reading)


Gmane