summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_dhcpv6_edit.php')
-rw-r--r--usr/local/www/services_dhcpv6_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6_edit.php b/usr/local/www/services_dhcpv6_edit.php
index a13aa37..99a8f7b 100644
--- a/usr/local/www/services_dhcpv6_edit.php
+++ b/usr/local/www/services_dhcpv6_edit.php
@@ -53,6 +53,8 @@ function staticmaps_sort($ifgui) {
require_once('globals.inc');
+$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_dhcpv6.php');
+
if(!$g['services_dhcp_server_enable']) {
header("Location: /");
exit;
@@ -243,7 +245,8 @@ include("head.inc");
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" />
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
+ <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
<?php if (isset($id) && $a_maps[$id]): ?>
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
<?php endif; ?>
OpenPOWER on IntegriCloud