Commit 6aaba834 authored by Franco Fichtner's avatar Franco Fichtner

www: url_safe() for status pages #1168

parent c378d413
...@@ -43,18 +43,18 @@ if ($_POST['reloadfilter']) { ...@@ -43,18 +43,18 @@ if ($_POST['reloadfilter']) {
// only try to sync when hasync is configured // only try to sync when hasync is configured
configd_run("filter sync reload"); configd_run("filter sync reload");
} }
header("Location: status_filter_reload.php"); header(url_safe('Location: /status_filter_reload.php'));
exit; exit;
} }
if ($_POST['syncfilter']) { if ($_POST['syncfilter']) {
configd_run("filter sync"); configd_run("filter sync");
header("Location: status_filter_reload.php"); header(url_safe('Location: /status_filter_reload.php'));
exit; exit;
} }
include("head.inc"); include("head.inc");
?>
?>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
......
...@@ -93,14 +93,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -93,14 +93,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
exit; exit;
} }
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
header("Location: status_graph.php"); header(url_safe('Location: /status_graph.php'));
exit; exit;
} }
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
include("head.inc"); include("head.inc");
?>
?>
<body> <body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
......
...@@ -44,7 +44,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -44,7 +44,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} else { } else {
interface_configure($interface); interface_configure($interface);
} }
header("Location: status_interfaces.php"); header(url_safe('Location: /status_interfaces.php'));
exit; exit;
} }
} }
......
...@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure(); relayd_configure();
filter_configure(); filter_configure();
clear_subsystem_dirty('loadbalancer'); clear_subsystem_dirty('loadbalancer');
header("Location: status_lb_pool.php"); header(url_safe('Location: /status_lb_pool.php'));
exit; exit;
} else { } else {
// change pool configuration (enabled/disabled servers) // change pool configuration (enabled/disabled servers)
...@@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
mark_subsystem_dirty('loadbalancer'); mark_subsystem_dirty('loadbalancer');
write_config("Updated load balancer pools via status screen."); write_config("Updated load balancer pools via status screen.");
} }
header("Location: status_lb_pool.php"); header(url_safe('Location: /status_lb_pool.php'));
exit; exit;
} }
} }
......
...@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure(); relayd_configure();
filter_configure(); filter_configure();
clear_subsystem_dirty('loadbalancer'); clear_subsystem_dirty('loadbalancer');
header("Location: status_lb_vs.php"); header(url_safe('Location: /status_lb_vs.php'));
exit; exit;
} }
} }
......
...@@ -35,7 +35,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -35,7 +35,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($_POST['clear'])) { if (!empty($_POST['clear'])) {
upnp_stop(); upnp_stop();
upnp_start(); upnp_start();
header("Location: status_upnp.php"); header(url_safe('Location: /status_upnp.php'));
exit; exit;
} }
} }
......
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