From 105427e9fd39bad5e5fa972528d77032e2cd4b93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 1 May 2011 14:49:31 +0200 Subject: [PATCH] Fixes display of removed redirection. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/emails.inc.php | 2 +- templates/emails/redirect.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }); -- 2.1.4