diff --git a/templates/list-virtual.php b/templates/list-virtual.php index cad97450..bc5b24c7 100644 --- a/templates/list-virtual.php +++ b/templates/list-virtual.php @@ -154,8 +154,8 @@ if (sizeof ($tAlias) > 0) print " " . $tAlias[$i]['address'] . "\n"; if ($CONF['alias_goto_limit'] > 0) { - print " " . ereg_replace ( - ",", + print " " . preg_replace ( + "/,/", "
", preg_replace( '/^(([^,]+,){'.$CONF['alias_goto_limit'].'})[^,]+,.*/', @@ -167,7 +167,7 @@ if (sizeof ($tAlias) > 0) ) ) . "\n"; } else { - print " " . ereg_replace (",", "
", $tAlias[$i]['goto']) . "\n"; + print " " . preg_replace ("/,/", "
", $tAlias[$i]['goto']) . "\n"; } print " " . $tAlias[$i]['modified'] . "\n"; diff --git a/templates/search.php b/templates/search.php index 09cf5cc8..00e905fe 100644 --- a/templates/search.php +++ b/templates/search.php @@ -76,7 +76,7 @@ if (sizeof ($tAlias) > 0) $fSearch . "", $tAlias[$i]['goto']); $tAlias[$i]['goto'] = $new_goto; } - print " " . ereg_replace (",", "
", $tAlias[$i]['goto']) . "\n"; + print " " . preg_replace ("/,/", "
", $tAlias[$i]['goto']) . "\n"; print " " . $tAlias[$i]['modified'] . "\n"; if ($CONF['special_alias_control'] == 'YES' || authentication_has_role('global-admin')) {