MFB: Make sure that email lists are correctly encoded. We don't support them at the...
authorJan Schneider <jan@horde.org>
Mon, 30 Mar 2009 16:05:52 +0000 (18:05 +0200)
committerJan Schneider <jan@horde.org>
Mon, 30 Mar 2009 16:53:40 +0000 (18:53 +0200)
kronolith/docs/CHANGES
kronolith/templates/contacts/contacts.inc

index 6484ad4..88b677d 100644 (file)
@@ -17,6 +17,7 @@ v3.0-git
 v2.3.1-cvs
 ----------
 
+[jan] Prevent warnings if trying to add address lists as attendees (Bug #7834).
 [jan] Fix start and end time calculation of multi-day events (Bug #7788).
 [jan] Wrap URL in calendar information in IE7 (almarin@um.es, Bug #8043).
 [jan] Fix "Date-string has wrong format" error with holidays (Bug #7961).
index 689d5da..aa722ce 100644 (file)
@@ -160,7 +160,7 @@ window.onload = function() {
     <label for="search_results" class="hidden"><?php echo _("Search results") ?></label>
     <select id="search_results" name="search_results" multiple="multiple" size="10" style="width:250px" onchange="document.contacts.search_results[0].selected=false" ondblclick="addAddress()">
       <option value=""><?php echo _("* Please select address(es) *") ?></option>
-      <?php foreach ($addresses as $addr): if ($display == 'email'): ?>
+      <?php foreach ($addresses as $addr): if (strpos($addr['email'], ',') !== false && strpos($addr['email'], ':') === false) $addr['email'] = $addr['name'] . ': ' . $addr['email']; if ($display == 'email'): ?>
       <option value="<?php echo rawurlencode($addr['name']) ?>"><?php echo htmlspecialchars($addr['email']) ?></option>
       <?php else: ?>
       <option value="<?php echo rawurlencode($addr['email']) ?>"><?php echo htmlspecialchars($addr['name']) ?></option>