mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
hack to fix SOGo connectors missing decoding in our free/busy url
This commit is contained in:
parent
415527b677
commit
798dd4fab0
@ -40,6 +40,12 @@
|
||||
include ('../phpgwapi/inc/functions.inc.php');
|
||||
$GLOBALS['egw_info']['flags']['currentapp'] = 'calendar';
|
||||
}
|
||||
// fix for SOGo connector, which does not decode the = in our f/b url
|
||||
if (strpos($_SERVER['QUERY_STRING'],'=3D') !== false && substr($_GET['user'],0,2) == '3D')
|
||||
{
|
||||
$_GET['user'] = substr($_GET['user'],2);
|
||||
if (isset($_GET['password'])) $_GET['password'] = substr($_GET['password'],2);
|
||||
}
|
||||
$user = is_numeric($_GET['user']) ? (int) $_GET['user'] : $GLOBALS['egw']->accounts->name2id($_GET['user'],'account_lid','u');
|
||||
|
||||
if (!($username = $GLOBALS['egw']->accounts->id2name($user)))
|
||||
|
Loading…
Reference in New Issue
Block a user