bug 348796 - Strips braces from UIDs when using CalDAV. patch by bbbrowning, r1=jminta, r2=dmose

This commit is contained in:
mattwillis%gmail.com 2006-08-27 12:52:35 +00:00
Родитель 7fcc9b9495
Коммит fd1a8f0307
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -175,9 +175,11 @@ calDavCalendar.prototype = {
if (this.readOnly) {
throw Components.interfaces.calIErrors.CAL_IS_READONLY;
}
// CalDAV UIDs are used to construct filenames, so we strip braces to avoid
// problems with servers which do not support names with {}
if (aItem.id == null && aItem.isMutable)
aItem.id = getUUID();
aItem.id = getUUID().replace(/[{}]/g, '');
if (aItem.id == null) {
if (aListener)