Commit b60391da authored by Franco Fichtner's avatar Franco Fichtner

services: #1168 for load balancer pages

parent 05b1fa9a
......@@ -65,7 +65,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}
......
......@@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}
......
......@@ -64,7 +64,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}
......
......@@ -142,18 +142,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_pool.php");
header(url_safe('Location: /load_balancer_pool.php'));
exit;
}
}
$service_hook = 'relayd';
legacy_html_escape_form_data($pconfig);
include("head.inc");
?>
?>
<body>
<!-- push all available (nestable) aliases in a hidden select box -->
<select class="hidden" id="aliases">
......
......@@ -56,7 +56,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_setting.php");
header(url_safe('Location: /load_balancer_setting.php'));
exit;
} else {
/* input validation */
......@@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config();
mark_subsystem_dirty('loadbalancer');
header("Location: load_balancer_setting.php");
header(url_safe('Location: /load_balancer_setting.php'));
exit;
}
}
......
......@@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
/* Wipe out old relayd anchors no longer in use. */
cleanup_lb_marked();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_virtual_server.php");
header(url_safe('Location: /load_balancer_virtual_server.php'));
exit;
}
}
......
......@@ -125,18 +125,18 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_virtual_server.php");
exit;
header(url_safe('Location: /load_balancer_virtual_server.php'));
exit;
}
}
$service_hook = 'relayd';
legacy_html_escape_form_data($pconfig);
include("head.inc");
?>
include("head.inc");
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment