diff --git a/phpgwapi/inc/horde/Horde/SyncML/Sync.php b/phpgwapi/inc/horde/Horde/SyncML/Sync.php index dd4c9a7450..70b9cfaf75 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/Sync.php +++ b/phpgwapi/inc/horde/Horde/SyncML/Sync.php @@ -212,9 +212,8 @@ class Horde_SyncML_Sync { $contentSize = strlen($syncItem->_content); if ((($size = $syncItem->getContentSize()) !== false) && - ($contentSize != $size) && - ($contentSize + 1 != $size)) { - Horde::logMessage('SyncML: content size missmatch for LocURI ' + abs($contentSize - $size) > 3) { + Horde::logMessage('SyncML: content size mismatch for LocURI ' . $syncItem->getLocURI() . ": $contentSize ($size)", __FILE__, __LINE__, PEAR_LOG_ERROR); $command->setStatus(RESPONSE_SIZE_MISMATCH); diff --git a/phpgwapi/inc/horde/Horde/SyncML/Sync/SlowSync.php b/phpgwapi/inc/horde/Horde/SyncML/Sync/SlowSync.php index 44f4ae01cd..b78e4c2aee 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/Sync/SlowSync.php +++ b/phpgwapi/inc/horde/Horde/SyncML/Sync/SlowSync.php @@ -225,9 +225,8 @@ class Horde_SyncML_Sync_SlowSync extends Horde_SyncML_Sync_TwoWaySync { $contentSize = strlen($syncItem->_content); if ((($size = $syncItem->getContentSize()) !== false) && - ($contentSize != $size) && - ($contentSize + 1 != $size)) { - Horde::logMessage('SyncML: content size missmatch for LocURI ' . $syncItem->_luid . + abs($contentSize - $size) > 3) { + Horde::logMessage('SyncML: content size mismatch for LocURI ' . $syncItem->_luid . ": $contentSize ($size)", __FILE__, __LINE__, PEAR_LOG_ERROR); $command->setStatus(RESPONSE_SIZE_MISMATCH); return;