mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
* Fix WBXML encoding issue (community bug#3020)
This commit is contained in:
parent
8edcf808d2
commit
e5679396d9
@ -48,7 +48,7 @@ class Horde_SyncML_Command_Sync_ContentSyncElement extends Horde_SyncML_Command_
|
||||
case 'strictxml':
|
||||
break;
|
||||
case 'htmlenc':
|
||||
if ($this->_contentSize) {
|
||||
if (!$state->isWBXML() && $this->_contentSize) {
|
||||
$this->_content = htmlspecialchars($this->_content, ENT_COMPAT, 'UTF-8');
|
||||
}
|
||||
break;
|
||||
@ -138,7 +138,9 @@ class Horde_SyncML_Command_Sync_ContentSyncElement extends Horde_SyncML_Command_
|
||||
}
|
||||
switch ($contentFormat) {
|
||||
case 'strictxml':
|
||||
$chars = '<![CDATA['. $chars. ']]>';
|
||||
if (!$state->isWBXML()) {
|
||||
$chars = '<![CDATA['. $chars. ']]>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
$output->characters($chars);
|
||||
|
@ -860,6 +860,7 @@ class Horde_SyncML_State {
|
||||
$res['ContentFormat'] = 'htmlenc';
|
||||
default:
|
||||
$res['mayFragment'] = 1;
|
||||
$res['ContentFormat'] = 'strictxml';
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user