From 62424bdbbb7b2f37c9a4b6e3531c7024e573317a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 12 Sep 2014 16:36:54 -0300 Subject: Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work --- usr/local/www/services_unbound_acls.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local/www/services_unbound_acls.php') diff --git a/usr/local/www/services_unbound_acls.php b/usr/local/www/services_unbound_acls.php index 98130dd..6ec2250 100644 --- a/usr/local/www/services_unbound_acls.php +++ b/usr/local/www/services_unbound_acls.php @@ -32,6 +32,8 @@ require("guiconfig.inc"); require("unbound.inc"); +$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound_acls.php'); + if (!is_array($config['unbound']['acls'])) $config['unbound']['acls'] = array(); @@ -302,7 +304,8 @@ if (is_subsystem_dirty("unbound"))    
  - " /> " onclick="history.back()" /> + " /> + " onclick="window.location.href=''" /> -- cgit v1.1