Fix: envoi des données ldap en utf8

This commit is contained in:
Regis Houssin 2007-07-03 06:29:59 +00:00
parent f4443856b5
commit 92acdf65df
3 changed files with 7 additions and 5 deletions

View File

@ -237,9 +237,9 @@ class Contact
$info["objectclass"]=split(',',$conf->global->LDAP_CONTACT_OBJECT_CLASS); $info["objectclass"]=split(',',$conf->global->LDAP_CONTACT_OBJECT_CLASS);
// Champs // Champs
if ($this->fullname && $conf->global->LDAP_FIELD_FULLNAME) $info[$conf->global->LDAP_FIELD_FULLNAME] = $this->fullname; if ($this->fullname && $conf->global->LDAP_FIELD_FULLNAME) $info[$conf->global->LDAP_FIELD_FULLNAME] = utf8_encode($this->fullname);
if ($this->name && $conf->global->LDAP_FIELD_NAME) $info[$conf->global->LDAP_FIELD_NAME] = $this->name; if ($this->name && $conf->global->LDAP_FIELD_NAME) $info[$conf->global->LDAP_FIELD_NAME] = utf8_encode($this->name);
if ($this->firstname && $conf->global->LDAP_FIELD_FIRSTNAME) $info[$conf->global->LDAP_FIELD_FIRSTNAME] = $this->firstname; if ($this->firstname && $conf->global->LDAP_FIELD_FIRSTNAME) $info[$conf->global->LDAP_FIELD_FIRSTNAME] = utf8_encode($this->firstname);
if ($this->poste) $info["title"] = $this->poste; if ($this->poste) $info["title"] = $this->poste;
if ($this->socid > 0) if ($this->socid > 0)

View File

@ -217,3 +217,4 @@ DeleteFile=Delete file
ConfirmDeleteFile=Are you sure you want to delete this file? ConfirmDeleteFile=Are you sure you want to delete this file?
AllocateCommercial=Allocate a commercial AllocateCommercial=Allocate a commercial
SelectCountry=Select a country SelectCountry=Select a country
SelectCompany=Select a third party

View File

@ -220,3 +220,4 @@ DeleteFile=Suppression d'un fichier
ConfirmDeleteFile=Êtes-vous sûr de vouloir supprimer ce fichier ? ConfirmDeleteFile=Êtes-vous sûr de vouloir supprimer ce fichier ?
AllocateCommercial=Affecter un commercial AllocateCommercial=Affecter un commercial
SelectCountry=Sélectionner un pays SelectCountry=Sélectionner un pays
SelectCompany=Sélectionner un tiers