Browse Source

Espace démo : bug espace dans email

master
keun 8 years ago
parent
commit
4e5b1bf5f8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      backend/controllers/CronController.php

+ 2
- 0
backend/controllers/CronController.php View File

$email = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $email); $email = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $email);
$email = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $email); // pour les ligatures e.g. 'œ' $email = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $email); // pour les ligatures e.g. 'œ'
$email = preg_replace('#&[^;]+;#', '', $email); // supprime les autres caractères $email = preg_replace('#&[^;]+;#', '', $email); // supprime les autres caractères
$email = str_replace(' ','',$email) ;
$u->email = $email ; $u->email = $email ;
$u->telephone = '0600000000' ; $u->telephone = '0600000000' ;
} }
$u->save(); $u->save();
} }
$commandes = Commande::find() $commandes = Commande::find()

Loading…
Cancel
Save