diff --git a/functions.inc.php b/functions.inc.php index c3e34eb1..f3631526 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1755,9 +1755,9 @@ function gen_show_status ($show_alias) { list(/*NULL*/,$stat_domain) = explode('@',$g); $stat_delimiter = ""; if (!empty($CONF['recipient_delimiter'])) { - $stat_delimiter = "OR address = '" . preg_replace($delimiter_regex, "@", $g) . "'"; + $stat_delimiter = "OR address = '" . escape_string(preg_replace($delimiter_regex, "@", $g)) . "'"; } - $stat_result = db_query ("SELECT address FROM $table_alias WHERE address = '$g' OR address = '@$stat_domain' $stat_delimiter"); + $stat_result = db_query ("SELECT address FROM $table_alias WHERE address = '" . escape_string($g) . "' OR address = '@" . escape_string($stat_domain) . "' $stat_delimiter"); if ($stat_result['rows'] == 0) { $stat_ok = 0; } diff --git a/templates/list-virtual_alias_domain.tpl b/templates/list-virtual_alias_domain.tpl index ae2a6ccc..83c5dd1b 100644 --- a/templates/list-virtual_alias_domain.tpl +++ b/templates/list-virtual_alias_domain.tpl @@ -6,4 +6,6 @@ {assign var="id_field" value=$msg.id_field} {assign var="formconf" value=$aliasdomain_data.formconf} {assign var="items" value=$tAliasDomains} +{assign var="RAW_items" value=$RAW_tAliasDomains} + {include 'list.tpl'} diff --git a/templates/list.tpl b/templates/list.tpl index 2242321c..f5f50f22 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -51,7 +51,8 @@