(legacy) fix redirect on service reload, closes https://github.com/opnsense/core/issues/763

This commit is contained in:
Ad Schellevis 2016-02-08 16:41:54 +01:00
parent 4ae8fc6cb6
commit f173a3bedd

View File

@ -60,8 +60,9 @@ if (!empty($_GET['service'])) {
break;
}
sleep(5);
// redirect after performing action, removing the action parameters from request.
header("Location: status_services.php");
// redirect to the previous page after performing action, removing the action parameters from request.
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/status_services.php');
header("Location: ".$referer);
exit;
}