login param to egw_session::create needs domain appended, otherwise session verify will fail because of changed domain and anon user gets logged out

This commit is contained in:
Ralf Becker 2015-03-03 21:28:45 +00:00
parent d49a166cf2
commit 4295d84746

View File

@ -256,7 +256,8 @@ class egw_sharing
if ($keep_session === false && $GLOBALS['egw']->sharing->use_filemanager() || is_null($keep_session)) if ($keep_session === false && $GLOBALS['egw']->sharing->use_filemanager() || is_null($keep_session))
{ {
// create session without checking auth: create(..., false, false) // 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); sleep(1);
$status = '500 Internal Server Error'; $status = '500 Internal Server Error';