diff options
author | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-03-15 19:14:10 +0100 |
---|---|---|
committer | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-03-15 19:14:10 +0100 |
commit | 9b64c6163cba7530ee09e47b44e62c3e8ecf69ef (patch) | |
tree | e84880e412390f44e67aff1497562e633deed136 /mod/post.php | |
parent | 4fd0d1489825bd456e0cac77b47de156ff94c0cc (diff) | |
parent | 3cb179aff19d803b91261e410c50b36e4bae1246 (diff) | |
download | volse-hubzilla-9b64c6163cba7530ee09e47b44e62c3e8ecf69ef.tar.gz volse-hubzilla-9b64c6163cba7530ee09e47b44e62c3e8ecf69ef.tar.bz2 volse-hubzilla-9b64c6163cba7530ee09e47b44e62c3e8ecf69ef.zip |
Merge pull request #2 from friendica/master
merge from friendica/red
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/post.php b/mod/post.php index 6c57bfa0d..95c984b40 100644 --- a/mod/post.php +++ b/mod/post.php @@ -243,6 +243,7 @@ function post_init(&$a) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $x[0]['xchan_hash']; + $_SESSION['my_url'] = $x[0]['xchan_url']; $_SESSION['my_address'] = $address; $_SESSION['remote_service_class'] = $remote_service_class; $_SESSION['remote_level'] = $remote_level; @@ -264,7 +265,7 @@ function post_init(&$a) { } else { if($test) { $ret['message'] .= 'auth failure. ' . print_r($_REQUEST,true) . print_r($j,true) . EOL; - json_return_and_dir($ret); + json_return_and_die($ret); } logger('mod_zot: magic-auth failure - not authenticated: ' . $x[0]['xchan_addr']); @@ -280,7 +281,7 @@ function post_init(&$a) { if($test) { $ret['message'] .= 'auth failure fallthrough ' . print_r($_REQUEST,true) . print_r($j,true) . EOL; - json_return_and_dir($ret); + json_return_and_die($ret); } if(strstr($desturl,z_root() . '/rmagic')) |