2004-10-13 Marcus Mueller <znek@mulle-kybernetik.com>
+ * UIxMailToSelection.m: sanitize CN's a bit before using them (v0.9.39)
+
* v0.9.38
* UIxMailToSelection.[wox|m]: removed superfluous debug messages
@" list.appendChild(span);\n"
@"}\n"
@"\n"
+ @"function sanitizedCn(cn) {\n"
+ @" var parts;\n"
+ @" parts = cn.split(', ');\n"
+ @" if(parts.length == 1)\n"
+ @" return cn;\n"
+ @" return parts[0];\n"
+ @"}\n"
+ @"\n"
@"function addAddress(type, cn, dn, email, uid, sn) {\n"
@" var shouldAddRow, s, e;\n"
@" \n"
@" shouldAddRow = true;\n"
- @" s = cn + ' <' + email + '>';\n"
+ @" s = this.sanitizedCn(cn) + ' <' + email + '>';\n"
@"\n"
@" if(this.hasAddress(email))\n"
@" return;\n"