diff options
Diffstat (limited to 'src/usr/local/www/firewall_aliases.php')
-rw-r--r-- | src/usr/local/www/firewall_aliases.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_aliases.php b/src/usr/local/www/firewall_aliases.php index 4f422dd..a07da68 100644 --- a/src/usr/local/www/firewall_aliases.php +++ b/src/usr/local/www/firewall_aliases.php @@ -132,6 +132,10 @@ if ($_GET['act'] == "del") { if ($is_alias_referenced == true) { $savemsg = sprintf(gettext("Cannot delete alias. Currently in use by %s"), htmlspecialchars($referenced_by)); } else { + if (preg_match("/urltable/i", $a_aliases[$_GET['id']]['type'])) { + // this is a URL table type alias, delete its file as well + unlink_if_exists("/var/db/aliastables/" . $a_aliases[$_GET['id']]['name'] . ".txt"); + } unset($a_aliases[$_GET['id']]); if (write_config()) { filter_configure(); |