Ignore:
Timestamp:
09/23/09 09:37:59 (15 years ago)
Author:
amuller
Message:

Ticket #651 - Correção de buscas sem sentido no LDAP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/InfoContact.js

    r790 r1440  
    116116                else if(!ldapSearched) { 
    117117                        ldapSearched = true; 
    118                         cExecute ("$this.ldap_functions.getUserByEmail&email="+email, handler_search); 
     118                        var domains = ''; 
     119                        var blocked = true; 
     120                        if (preferences.notification_domains != undefined && preferences.notification_domains != "") 
     121                                domains = preferences.notification_domains.split(','); 
     122                        for (var i = 0; i < domains.length; i++) 
     123                        { 
     124                                if (email.toString().match(domains[i])) 
     125                                        blocked=false; 
     126                        } 
     127                        if (!blocked) 
     128                                cExecute ("$this.ldap_functions.getUserByEmail&email="+email, handler_search); 
     129                        else 
     130                                _this.label(email); 
    119131                } 
    120132                else 
Note: See TracChangeset for help on using the changeset viewer.