Strip white-space from xml when caching
This commit is contained in:
parent
da4fea3a3d
commit
f53a1662e3
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ class kolab_storage_cache
|
|||
}
|
||||
|
||||
if ($object['_formatobj']) {
|
||||
$sql_data['xml'] = (string)$object['_formatobj']->write();
|
||||
$sql_data['xml'] = preg_replace('!(</?[a-z0-9:-]+>)[\n\r\t\s]+!ms', '$1', (string)$object['_formatobj']->write());
|
||||
$sql_data['tags'] = ' ' . join(' ', $object['_formatobj']->get_tags()) . ' '; // pad with spaces for strict/prefix search
|
||||
$sql_data['words'] = ' ' . join(' ', $object['_formatobj']->get_words()) . ' ';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue