From ba14003d5fea91d4bd2f83c82b4a23f7f4bc1f46 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Thu, 3 Nov 2005 13:23:15 +0000 Subject: [PATCH] Patch by Kris --- bundled-libs/Onyx/RSS.php | 4 ++-- docs/NEWS | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bundled-libs/Onyx/RSS.php b/bundled-libs/Onyx/RSS.php index 11c2cb6..2db05c7 100644 --- a/bundled-libs/Onyx/RSS.php +++ b/bundled-libs/Onyx/RSS.php @@ -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; } diff --git a/docs/NEWS b/docs/NEWS index 7fa13ba..830c14e 100644 --- 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) -- 2.39.5