diff options
author | Warren Baker <warren@decoy.co.za> | 2012-07-24 16:35:27 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-07-24 16:35:27 +0200 |
commit | a5416de22195347b14dfdc8a07ac676b463c9ccc (patch) | |
tree | a53ca2eac787ca290ec0a264647f5f5fcb4dcd5c /usr/local/www/firewall_aliases_edit.php | |
parent | 3a8e5e3c24b01a4e8626aa978ef96886cb5dd490 (diff) | |
download | pfsense-a5416de22195347b14dfdc8a07ac676b463c9ccc.zip pfsense-a5416de22195347b14dfdc8a07ac676b463c9ccc.tar.gz |
Return the user to the tab they were working originally working on
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 8b9df48..194d445 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -357,8 +357,11 @@ if ($_POST) { write_config(); - header("Location: firewall_aliases.php"); - exit; + if($_POST['tab']) + header("Location: firewall_aliases.php?tab=" . htmlspecialchars ($_POST['tab'])); + else + header("Location: firewall_aliases.php"); + exit; } //we received input errors, copy data to prevent retype else @@ -573,6 +576,7 @@ EOD; <div id="inputerrors"></div> <form action="firewall_aliases_edit.php" method="post" name="iform" id="iform"> +<input name="tab" type="hidden" id="tab" value="<?=htmlspecialchars($pconfig['type']);?>" /> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Alias Edit"); ?></td> |