1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

Caldav: protect ':' in VCALENDAR property params

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1516 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-10-22 14:47:32 +00:00
parent f641982096
commit 4547ee7870

View File

@ -370,7 +370,9 @@ public class VProperty {
}
protected void appendParamValue(StringBuilder buffer, String value) {
if (value.indexOf(';') >= 0 || value.indexOf(',') >= 0 || value.indexOf('(') >= 0 || value.indexOf('/') >= 0) {
if (value.indexOf(';') >= 0 || value.indexOf(',') >= 0
|| value.indexOf('(') >= 0 || value.indexOf('/') >= 0
|| value.indexOf(':') >= 0) {
buffer.append('"').append(value).append('"');
} else {
buffer.append(value);