Fixes display of removed redirection.
authorStéphane Jacob <sj@m4x.org>
Sun, 1 May 2011 12:49:31 +0000 (14:49 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 1 May 2011 12:49:31 +0000 (14:49 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/emails.inc.php
templates/emails/redirect.tpl

index fe46f37..5a05f61 100644 (file)
@@ -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;
     }
index 4c691b4..ec033bb 100644 (file)
@@ -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();
           });