Signed-off-by: Stéphane Jacob <sj@m4x.org>
if (array_key_exists($this->type , self::$storage_domains)) {
$this->id = $this->type;
} else {
- $this->id = str_replace('@', '_at_', $this->email);
+ $this->id = str_replace(array('@', '.'), array('_at_', '_dot_'), $this->email);
}
$this->user = &$user;
}
{
if (confirm("Supprimer l'adresse " + email + " ?")) {
$.get(link.href, {},function() {
- $('#line_' + email.replace('@', '_at_').replace('.', '\\.')).remove();
+ $('#line_' + email.replace('@', '_at_').replace(/\./g, '_dot_')).remove();
showRemove();
activeEnable();
});