diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-07-27 19:03:26 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-07-27 19:03:48 -0400 |
commit | 439cc13f26320a697751bce8047b0993b2db9604 (patch) | |
tree | bd7a94f57402198c983bb4a07013130941c80cc6 /usr/local | |
parent | 6968b356b9328305c4517405e031e87b58f72090 (diff) | |
download | pfsense-439cc13f26320a697751bce8047b0993b2db9604.zip pfsense-439cc13f26320a697751bce8047b0993b2db9604.tar.gz |
Add hooks
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index adaa2c7..275cdd6 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -285,6 +285,9 @@ if ($_POST) { $input_errors[] = sprintf(gettext('The alias(es): %s cannot be nested because they are not of the same type.'), $wrongaliases); } + // Allow extending of the firewall edit page and include custom input validation + pfSense_handle_custom_code("/usr/local/pkg/firewall_aliases_edit/input_validation"); + if (!$input_errors) { $alias['address'] = is_array($address) ? implode(" ", $address) : $address; $alias['descr'] = $_POST['descr']; @@ -581,6 +584,7 @@ EOD; </span> </td> </tr> + <?php pfSense_handle_custom_code("/usr/local/pkg/firewall_aliases_edit/after_first_tr"); ?> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td> <td width="78%" class="vtable"> |