* Allow redirects when fetching remote images (garvinhicking)
This commit is contained in:
parent
10cde4adeb
commit
be6a1f7964
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user