mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Don't check headers, simply verify user first, server second.
This commit is contained in:
parent
a52878e3b3
commit
878aae8025
12
xmlrpc.php
12
xmlrpc.php
@ -34,19 +34,13 @@
|
|||||||
$auth = base64_decode(trim($tmp));
|
$auth = base64_decode(trim($tmp));
|
||||||
list($sessionid,$kp3) = split(':',$auth);
|
list($sessionid,$kp3) = split(':',$auth);
|
||||||
|
|
||||||
if($HTTP_SERVER_VARS['HTTP_X_PHPGW_SERVER'])
|
|
||||||
{
|
|
||||||
if($GLOBALS['phpgw']->session->verify_server($sessionid,$kp3))
|
|
||||||
{
|
|
||||||
$server->authed = True;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if($GLOBALS['phpgw']->session->verify($sessionid,$kp3))
|
if($GLOBALS['phpgw']->session->verify($sessionid,$kp3))
|
||||||
{
|
{
|
||||||
$server->authed = True;
|
$server->authed = True;
|
||||||
}
|
}
|
||||||
|
elseif($GLOBALS['phpgw']->session->verify_server($sessionid,$kp3))
|
||||||
|
{
|
||||||
|
$server->authed = True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user