Bug 407700 Need to filter [;:] for common names CN

This commit is contained in:
daniel.boelzle%sun.com 2007-12-10 12:51:51 +00:00
Родитель efad717aed
Коммит 60f47b336f
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -60,7 +60,7 @@ function calWcapCalendar_encodeAttendee(att)
var params = encodeAttr(att.rsvp ? "TRUE" : "FALSE", "RSVP", "");
params = encodeAttr(att.participationStatus, "PARTSTAT", params);
params = encodeAttr(att.role, "ROLE", params);
params = encodeAttr(att.commonName, "CN", params);
params = encodeAttr(att.commonName.replace(/[;:]/g, "?"), "CN", params);
return encodeAttr(att.id, null, params);
};
@ -90,9 +90,7 @@ function calWcapCalendar_getRecurrenceParams(
for each (var rItem in rItems) {
var isNeg = rItem.isNegative;
if (rItem instanceof Components.interfaces.calIRecurrenceRule) {
var rule = ("\"" + encodeURIComponent(
rItem.icalProperty.valueAsIcalString) +
"\"");
var rule = ("\"" + encodeURIComponent(rItem.icalProperty.valueAsIcalString) + "\"");
if (isNeg)
out_exrules.value.push(rule);
else