mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
added special handling to better detect funambol clients
This commit is contained in:
parent
99771edd87
commit
244097e99c
@ -25,7 +25,7 @@ class Horde_SyncML_Command_Results extends Horde_SyncML_Command {
|
||||
var $_deviceInfo;
|
||||
|
||||
function endElement($uri, $element) {
|
||||
#Horde::logMessage('SyncML: put endelement ' . $element . ' stack ' . $this->_xmlStack, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||
#Horde::logMessage('SyncML: put endelement ' . $element . ' chars ' . $this->_chars, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||
|
||||
switch ($this->_xmlStack) {
|
||||
case 5:
|
||||
@ -40,7 +40,18 @@ class Horde_SyncML_Command_Results extends Horde_SyncML_Command {
|
||||
break;
|
||||
|
||||
case 'DevID':
|
||||
$this->_deviceInfo['deviceID'] = trim($this->_chars);
|
||||
switch(trim($this->_chars)) {
|
||||
case 'fmz-thunderbird-plugin':
|
||||
$this->_deviceInfo['deviceID'] = trim($this->_chars);
|
||||
$this->_deviceInfo['manufacturer'] = 'funambol';
|
||||
$this->_deviceInfo['model'] = trim($this->_chars);
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->_deviceInfo['deviceID'] = trim($this->_chars);
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case 'DevTyp':
|
||||
|
Loading…
Reference in New Issue
Block a user