Browse Source

[Web] Fix alias table - fixes #1467

André 7 years ago
parent
commit
43a6e24b81
2 changed files with 2 additions and 2 deletions
  1. 1 1
      data/web/inc/functions.mailbox.inc.php
  2. 1 1
      data/web/js/mailbox.js

+ 1 - 1
data/web/inc/functions.mailbox.inc.php

@@ -2800,7 +2800,7 @@ function mailbox($_action, $_type, $_data = null, $attr = null) {
             return false;
             return false;
           }
           }
           try {
           try {
-            $stmt = $pdo->prepare("SELECT REPLACE(`address`, ',', ' ') AS `address` FROM `alias` WHERE `address` != `goto` AND `domain` = :domain");
+            $stmt = $pdo->prepare("SELECT `address` FROM `alias` WHERE `address` != `goto` AND `domain` = :domain");
             $stmt->execute(array(
             $stmt->execute(array(
               ':domain' => $_data,
               ':domain' => $_data,
             ));
             ));

+ 1 - 1
data/web/js/mailbox.js

@@ -469,7 +469,7 @@ jQuery(function($){
               '<a href="#" id="delete_selected" data-id="single-alias" data-api-url="delete/alias" data-item="' + encodeURIComponent(item.address) + '" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span> ' + lang.remove + '</a>' +
               '<a href="#" id="delete_selected" data-id="single-alias" data-api-url="delete/alias" data-item="' + encodeURIComponent(item.address) + '" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span> ' + lang.remove + '</a>' +
               '</div>';
               '</div>';
             item.chkbox = '<input type="checkbox" data-id="alias" name="multi_select" value="' + encodeURIComponent(item.address) + '" />';
             item.chkbox = '<input type="checkbox" data-id="alias" name="multi_select" value="' + encodeURIComponent(item.address) + '" />';
-            item.goto = escapeHtml(item.goto);
+            item.goto = escapeHtml(item.goto.replace(/,/g, " "));
             if (item.is_catch_all == 1) {
             if (item.is_catch_all == 1) {
               item.address = '<div class="label label-default">Catch-All</div> ' + escapeHtml(item.address);
               item.address = '<div class="label label-default">Catch-All</div> ' + escapeHtml(item.address);
             }
             }