Projet

Général

Profil

Anomalie #6652

Une Apostrophe dans le nom pose problème

Ajouté par Christophe LEON il y a plus de 10 ans. Mis à jour il y a environ 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
Echéance:
% réalisé:

100%

Distribution:
EOLE 2.3

Description

Bonjour,

Suite à la migration d'un Scribe en 2.3, Roundcube, fraichement installé, est en erreur :

"Parse error: syntax error, unexpected T_STRING, expecting ')' in /var/www/html/roundcube/config/main.inc.php on line 554"

Dans ce fichier, je trouve :

// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
// Array key must contain only safe characters, ie. a-zA-Z0-9_
$rcmail_config['ldap_public’]['Local’] = array(
'name’ ⇒ 'BOIS D’OLIVE’,
'hosts’ ⇒ array('127.0.0.1’),
'port’ ⇒ 389,
'use_tls’ ⇒ false,
'user_specific’ ⇒ false,
'base_dn’ ⇒ 'o=gouv,c=fr’,
'writable’ ⇒ false,
'LDAP_Object_Classes’ ⇒ array("top", "inetOrgPerson"),
'required_fields’ ⇒ array("cn", "sn", "mail"),
'LDAP_rdn’ ⇒ 'mail’,
'ldap_version’ ⇒ 3,
'search_fields’ ⇒ array('mail’, 'cn’),
'name_field’ ⇒ 'cn’,
'email_field’ ⇒ 'mail’,
'surname_field’ ⇒ 'sn’,
'firstname_field’ ⇒ 'gn’,
'sort’ ⇒ 'cn’,
'scope’ ⇒ 'sub’,
'filter’ ⇒ '(mail=*)',
'fuzzy_search’ ⇒ true);

C'est l'apostrophe du nom BOIS D’OLIVE qui pose problème...

Solution 1 : changer le nom dans gen_config, mais quel serait l'impact ? faut-il ré-instancier ?

Solution 2 : comme seul Roundcube pose problème pour le moment, j'ai testé un échappement avec un \, pour mettre BOIS D\’OLIVE. Roundcube re-fonctionne.
Mais cela devrait sauter au reconfigure... Serait-il possible de modifier la reconfiguration qui créer le fichier /var/www/html/roundcube/config/main.inc.php ?

Merci !
Laurent Brillard
DSI5 / MAN Réunion

Révisions associées

Révision 1be039f3 (diff)
Ajouté par Christophe LEON il y a plus de 10 ans

Fixes: #6652, passage en double quote du libelle_etab, car ce dernier peut contenir des '

Historique

#1 Mis à jour par Christophe LEON il y a plus de 10 ans

  • Statut changé de A étudier à Résolu
  • % réalisé changé de 0 à 100

#2 Mis à jour par Arnaud FORNEROT il y a plus de 10 ans

  • Version cible mis à Envole 3.3.7

#3 Mis à jour par Arnaud FORNEROT il y a environ 10 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF