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:05 +00:00
parent c93a5852c0
commit e785f4ba29

View File

@ -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';