From 08d11093dd4ba77755cb97104e04c8c2ecdcc8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Wed, 11 Nov 2009 10:25:50 +0000 Subject: [PATCH] Add domain support --- phpgwapi/inc/horde/Horde/SyncML/State_egw.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/inc/horde/Horde/SyncML/State_egw.php b/phpgwapi/inc/horde/Horde/SyncML/State_egw.php index 0478bad56b..0875b106a1 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/State_egw.php +++ b/phpgwapi/inc/horde/Horde/SyncML/State_egw.php @@ -299,6 +299,9 @@ class EGW_SyncML_State extends Horde_SyncML_State if(strpos($this->_locName,'@') === False) { $this->_locName .= '@'.$GLOBALS['egw_info']['server']['default_domain']; + } else { + $parts = explode('@',$this->_locName); + $GLOBALS['egw_info']['user']['domain'] = array_pop($parts); } #Horde::logMessage('SyncML: authenticate with username: ' . $this->_locName . ' and password: ' . $this->_password, __FILE__, __LINE__, PEAR_LOG_DEBUG);