From e785f4ba297977243f092b1afda0f9be48bc571d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 3 Mar 2015 21:28:05 +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 b944cd7538..624a3d6520 100644 --- a/phpgwapi/inc/class.egw_sharing.inc.php +++ b/phpgwapi/inc/class.egw_sharing.inc.php @@ -262,7 +262,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';