forked from friendica/friendica-addons
use new temppath function
This commit is contained in:
parent
56519cf49a
commit
71e9d28d48
|
@ -276,7 +276,7 @@ function retrieve_resource($resource) {
|
||||||
$redirects = 0;
|
$redirects = 0;
|
||||||
$cookiejar = '';
|
$cookiejar = '';
|
||||||
if (array_key_exists('storecookies', $rule_data) && $rule_data['storecookies']) {
|
if (array_key_exists('storecookies', $rule_data) && $rule_data['storecookies']) {
|
||||||
$cookiejar = tempnam(get_temppath(), 'cookiejar-retriever-');
|
$cookiejar = tempnam(System::getTempPath(), 'cookiejar-retriever-');
|
||||||
file_put_contents($cookiejar, $rule_data['cookiedata']);
|
file_put_contents($cookiejar, $rule_data['cookiedata']);
|
||||||
}
|
}
|
||||||
$fetch_result = DI::httpClient()->fetchFull($resource['url'], $redirects, '', $cookiejar);
|
$fetch_result = DI::httpClient()->fetchFull($resource['url'], $redirects, '', $cookiejar);
|
||||||
|
|
Loading…
Reference in a new issue