dev-util/idea-* minor fixes
[anomen-overlay.git] / www-apps / pmwiki / cookbook / RssFeedDisplay / magpie / 001-proxy.patch
blob697ccd3bce90c9947cfff3dd81c9710206ebba8c
1 --- rss_fetch.inc 2005-11-05 22:10:56.000000000 +0100
2 +++ rss_fetch.inc 2011-11-19 21:57:10.000000000 +0100
3 @@ -270,6 +270,11 @@
4 $client->agent = MAGPIE_USER_AGENT;
5 $client->read_timeout = MAGPIE_FETCH_TIME_OUT;
6 $client->use_gzip = MAGPIE_USE_GZIP;
7 + if(defined('MAGPIE_PROXY')) {
8 + list($phost, $pport) = preg_split('/:/', MAGPIE_PROXY);
9 + $client->proxy_host = $phost;
10 + $client->proxy_port = $pport;
11 + }
12 if (is_array($headers) ) {
13 $client->rawheaders = $headers;