aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connedit.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-27 23:48:54 -0800
committerzotlabs <mike@macgirvin.com>2017-02-27 23:48:54 -0800
commitfa944fc52646219d69f910d7cd4750db9c8f11bd (patch)
tree9ab795eb36984efdad25b1f27bc5c0c9650513e0 /Zotlabs/Module/Connedit.php
parentdf6e75e1d6eede898e663cc63b346f118767aba5 (diff)
downloadvolse-hubzilla-fa944fc52646219d69f910d7cd4750db9c8f11bd.tar.gz
volse-hubzilla-fa944fc52646219d69f910d7cd4750db9c8f11bd.tar.bz2
volse-hubzilla-fa944fc52646219d69f910d7cd4750db9c8f11bd.zip
provide 'session' option to z_fetch_url to assist with remote fetches requiring magic auth
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-rw-r--r--Zotlabs/Module/Connedit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php
index 229f0dfe3..5b7c23028 100644
--- a/Zotlabs/Module/Connedit.php
+++ b/Zotlabs/Module/Connedit.php
@@ -445,7 +445,7 @@ class Connedit extends \Zotlabs\Web\Controller {
if($cmd === 'fetchvc') {
$url = str_replace('/channel/','/profile/',$orig_record[0]['xchan_url']) . '/vcard';
$recurse = 0;
- $x = z_fetch_url(zid($url),false,$recurse,['headers' => ['Cookie: PHPSESSID=' . session_id()]]);
+ $x = z_fetch_url(zid($url),false,$recurse,['session' => true]);
if($x['success']) {
$h = new \Zotlabs\Web\HTTPHeaders($x['header']);
$fields = $h->fetch();