mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
zip'ed xml document (eg. OO) --> need to encode &,<,> to not mess up xml
This commit is contained in:
parent
fe212f2d95
commit
1a4b306c46
@ -328,6 +328,10 @@ class addressbook_merge // extends bo_merge
|
||||
{
|
||||
$replacements = $GLOBALS['egw']->translation->convert($replacements,$GLOBALS['egw']->translation->charset(),$this->contacts->prefs['csv_charset']);
|
||||
}
|
||||
if (substr($document,0,6) == 'zip://') // zip'ed xml document (eg. OO) --> need to encode &,<,> to not mess up xml
|
||||
{
|
||||
$replacements = str_replace(array('&','&','<','>'),array('&','&','<','>'),$replacements);
|
||||
}
|
||||
$content = str_replace(array_keys($replacements),array_values($replacements),$content);
|
||||
|
||||
if (strpos($content,'$$calendar/') !== null) // remove not existing event-replacements
|
||||
|
Loading…
Reference in New Issue
Block a user