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;
}
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)