From: znek Date: Wed, 13 Oct 2004 01:55:35 +0000 (+0000) Subject: changes to make Anais happy ;-) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9b4d4d4dce77d2fffa71a54924e8ec64006c2b8;p=scalable-opengroupware.org changes to make Anais happy ;-) git-svn-id: http://svn.opengroupware.org/SOGo/trunk@392 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/Mailer/ChangeLog b/SOGo/UI/Mailer/ChangeLog index 6cba983a..3921ca40 100644 --- a/SOGo/UI/Mailer/ChangeLog +++ b/SOGo/UI/Mailer/ChangeLog @@ -1,5 +1,7 @@ 2004-10-13 Marcus Mueller + * UIxMailToSelection.m: sanitize CN's a bit before using them (v0.9.39) + * v0.9.38 * UIxMailToSelection.[wox|m]: removed superfluous debug messages diff --git a/SOGo/UI/Mailer/UIxMailToSelection.m b/SOGo/UI/Mailer/UIxMailToSelection.m index 046887c0..c86e79a7 100644 --- a/SOGo/UI/Mailer/UIxMailToSelection.m +++ b/SOGo/UI/Mailer/UIxMailToSelection.m @@ -329,11 +329,19 @@ static NSArray *headers = nil; @" 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" diff --git a/SOGo/UI/Mailer/Version b/SOGo/UI/Mailer/Version index 62c8c2f8..760afe2d 100644 --- a/SOGo/UI/Mailer/Version +++ b/SOGo/UI/Mailer/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=37 +SUBMINOR_VERSION:=39