diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-27 23:37:42 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-02-27 23:37:42 -0800 |
commit | df6e75e1d6eede898e663cc63b346f118767aba5 (patch) | |
tree | 0cf389aa925dfb764af6938cfbd0b2b021593f52 /Zotlabs | |
parent | c49935d91cfade98adbcd82daaf7848ecb681405 (diff) | |
download | volse-hubzilla-df6e75e1d6eede898e663cc63b346f118767aba5.tar.gz volse-hubzilla-df6e75e1d6eede898e663cc63b346f118767aba5.tar.bz2 volse-hubzilla-df6e75e1d6eede898e663cc63b346f118767aba5.zip |
make magic-auth work with profile vcard fetch
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Connedit.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index db1def16c..229f0dfe3 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -444,7 +444,8 @@ class Connedit extends \Zotlabs\Web\Controller { if($cmd === 'fetchvc') { $url = str_replace('/channel/','/profile/',$orig_record[0]['xchan_url']) . '/vcard'; - $x = z_fetch_url($url); + $recurse = 0; + $x = z_fetch_url(zid($url),false,$recurse,['headers' => ['Cookie: PHPSESSID=' . session_id()]]); if($x['success']) { $h = new \Zotlabs\Web\HTTPHeaders($x['header']); $fields = $h->fetch(); |