From: Stéphane Jacob Date: Sun, 1 May 2011 12:49:31 +0000 (+0200) Subject: Fixes display of removed redirection. X-Git-Tag: xorg/1.1.1~40 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=105427e9fd39bad5e5fa972528d77032e2cd4b93;p=platal.git Fixes display of removed redirection. Signed-off-by: Stéphane Jacob --- diff --git a/include/emails.inc.php b/include/emails.inc.php index fe46f37..5a05f61 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -514,7 +514,7 @@ class Email 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; } diff --git a/templates/emails/redirect.tpl b/templates/emails/redirect.tpl index 4c691b4..ec033bb 100644 --- a/templates/emails/redirect.tpl +++ b/templates/emails/redirect.tpl @@ -84,7 +84,7 @@ { 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(); });