Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 50 → Rev 51

/trunk/interfaces/controleurs/Versionnage.php
197,7 → 197,7
'contributeur' => 'Auteurs/Contributeurs');
foreach ($champs_contact as $champ_id => $champ_nom) {
if (isset($_POST[$champ_id]) && ! $this->verifierContact($_POST[$champ_id])) {
$this->addMessage("Le champ '$champ_nom' n'est pas au format : Prénom1 NOM1 (Organisation1) <courriel1>, Prénom2 NOM2 (Organisation2) <courriel2>.");
$this->addMessage("Le champ '$champ_nom' n'est pas au format : Prénom1 NOM1 (Organisation1) [courriel1], Prénom2 NOM2 (Organisation2) [courriel2].");
$ok = false;
}
}
220,7 → 220,7
$contacts = explode(',', $txt);
foreach ($contacts as $contact) {
$contact = trim($contact);
if (! preg_match("/^$pp $pn $po <$pc>(?:|.)$/u", $contact)) {
if (! preg_match("/^$pp $pn $po \[$pc\](?:|.)$/u", $contact)) {
$ok = false;
}
}