* Allow redirects when fetching remote images (garvinhicking)

This commit is contained in:
Garvin Hicking 2009-08-24 08:06:34 +00:00
parent 10cde4adeb
commit be6a1f7964
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@
Version 1.5 ()
------------------------------------------------------------------------
* Allow redirects when fetching remote images (garvinhicking)
-- beta1 release
* PHP 5.3.0 compatibility without E_WARNING triggers (garvinhicking)
* Added 'orderby' parameter to plugin API hooks for the serendipity

View File

@ -240,7 +240,7 @@ switch ($serendipity['GET']['adminAction']) {
}
require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$options = array();
$options = array('allowRedirects' => true, 'maxRedirects' => 5);
serendipity_plugin_api::hook_event('backend_http_request', $options, 'image');
serendipity_request_start();
$req = new HTTP_Request($serendipity['POST']['imageurl'], $options);