зеркало из https://github.com/mozilla/pjs.git
bug 348796 - Strips braces from UIDs when using CalDAV. patch by bbbrowning, r1=jminta, r2=dmose
This commit is contained in:
Родитель
7fcc9b9495
Коммит
fd1a8f0307
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче