From 4295d8474632fdde821867521d4fad885262758b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 3 Mar 2015 21:28:45 +0000 Subject: [PATCH] login param to egw_session::create needs domain appended, otherwise session verify will fail because of changed domain and anon user gets logged out --- phpgwapi/inc/class.egw_sharing.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_sharing.inc.php b/phpgwapi/inc/class.egw_sharing.inc.php index a1b15b1f8f..b08c90b760 100644 --- a/phpgwapi/inc/class.egw_sharing.inc.php +++ b/phpgwapi/inc/class.egw_sharing.inc.php @@ -256,7 +256,8 @@ class egw_sharing if ($keep_session === false && $GLOBALS['egw']->sharing->use_filemanager() || is_null($keep_session)) { // create session without checking auth: create(..., false, false) - if (!($sessionid = $GLOBALS['egw']->session->create('anonymous', '', 'text', false, false))) + if (!($sessionid = $GLOBALS['egw']->session->create('anonymous@'.$GLOBALS['egw_info']['user']['domain'], + '', 'text', false, false))) { sleep(1); $status = '500 Internal Server Error';